SELECT f.*, i.name AS category_name
FROM sw_files f LEFT OUTER JOIN kettler_images_types i ON (i.id_lifesport=f.id_kettler_images_types)
WHERE f.row_id=
AND f.module_name='sw_pages'
AND f.el_name='images'
AND f.id_kettler_images_types!=8
AND f.id_kettler_images_types!=9
ORDER BY f.sequence_image, f.id
MySQL 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 'AND f.module_name='sw_pages' AND f.el_name='images' AND f.id_k' at line 4
This script cannot continue, terminating.