Error: 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 'AND w_p_e.`visible` = 1 ORDER BY `order`' at line 8

File: /home/vincent/www_public/top_normy_cz/www/system/frontend/class_page_front.php

Line: 154

Class: Page_front

Function: Get_elements

SELECT w_p_e.`id_element`, s_e.`class`,s_e.`dir` FROM `web_pages_elements` w_p_e LEFT JOIN `sys_elements` s_e ON s_e.`id` = w_p_e.`id_sys_element` WHERE w_p_e.`id_page` = AND w_p_e.`visible` = 1 ORDER BY `order`