Error description db_principal: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND goa.id_accion = 1 AND goa.permiso = 1 ' at line 14\
SELECT o.id_Objeto id_objeto , o.Descripcion descripcion , CASE WHEN wi.objeto_imagen IS NULL THEN wi.url_imagen ELSE CONCAT('./general/imagen.php?id_objeto=',o.id_Objeto) END AS imagen , o.URL url , o.Target target FROM seg_objeto o INNER JOIN seg_grupo_objeto_accion goa ON o.id_Objeto = goa.id_Objeto INNER JOIN web_objeto_tipo_menu wm ON o.id_Objeto = wm.id_Objeto INNER JOIN web_objeto_imagen wi ON o.id_objeto = wi.id_objeto WHERE goa.id_grupo = AND goa.id_accion = 1 AND goa.permiso = 1 AND o.tipo IN (2) AND wm.id_tipo_menu = 2 ORDER BY wm.Orden