Error: 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 '?lng=eng and (web_proyectos_categorias.nombre is not null and web_proyectos_cate' at line 1
select web_proyectos_categorias.id from web_proyectos_categorias INNER JOIN web_proyectos ON web_proyectos.idcategoria = web_proyectos_categorias.id where web_proyectos_categorias.publicar = "S" and web_proyectos_categorias.id = 8?lng=eng and (web_proyectos_categorias.nombre is not null and web_proyectos_categorias.nombre <> "") and web_proyectos.publicar = "S" limit 1