Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /mnt/datos/ocio.laopinion.es/shared/class/layout.content.class.php on line 4513
MySQL Error Occured
1064: 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 'order by prioridad limit 0,20' at line 1

QUERY = select a.id, id_media, a.destacado, id_categoria, id_subcategoria, id_categoria_comercial, nombre, direccion, cp, id_localidad, a.id_provincia, telefonos, fax, web, mail, descripcion, d.prioridad, b.provincia, c.localidad, e.name usuario from oc_hostelerias_media a inner join oc_provincias b on a.id_provincia=b.id inner join oc_localidades c on a.id_localidad=c.id inner join oc_hostelerias_categoria_comercial d on a.id_categoria_comercial=d.id left join oc_user_epi e on a.id_user_EPI=e.id where publicable=1 and id_media=15 and a.id_categoria= order by prioridad limit 0,20