SELECT DISTINCT IF(relations.obj1_id = , relations.obj2_id, relations.obj1_id) AS obj_id FROM relations WHERE obj1_type_id = 16 AND obj2_type_id = 16 AND (obj1_id = OR obj2_id = ) LIMIT 1
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 ' relations.obj2_id, relations.obj1_id) AS obj_id FROM relations WH' at line 1
SELECT uce105_texts.*, obj21_thumber_thumbs.thumb_path, obj21_thumber_thumbs.thumb_width, obj21_thumber_thumbs.thumb_height, obj14_files.file_type_id AS image_type_id, obj14_files.path AS image_path, obj14_files.width AS image_width, obj14_files.height AS image_height FROM relations, obj4_sections, uce105_texts LEFT JOIN obj13_images ON (uce105_texts.image_id = obj13_images.id) LEFT JOIN obj14_files ON (obj14_files.id = obj13_images.file_id) LEFT JOIN obj21_thumber_thumbs ON (obj21_thumber_thumbs.id = obj13_images.thumb_id) WHERE relations.obj1_type_id = 4 AND relations.obj2_type_id = 105 AND relations.obj1_id = obj4_sections.id AND relations.obj2_id = uce105_texts.id AND obj4_sections.all_parent_id = AND uce105_texts.path LIKE "zinas.html" ORDER BY relations.orderlevel
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 uce105_texts.path LIKE "zinas.html" ORDER BY relations.orderlevel' at line 17
© 2001-2010 LMC developed by: ernests karlsons
|