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 '' at line 7
Query:
SELECT menu.*, menu_content.title, menu_content.lead, menu_content.tags, menu_content.text_id
FROM menu
INNER JOIN menu_content ON(menu.id = menu_content.menu_id AND lang = 'hu')
WHERE
menu.sub_id='0'
AND type IN ('TEXT','MODULE','LINK','BOOKS')
ORDER BY rankYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1' at line 6
Query:
SELECT content
FROM menu
INNER JOIN menu_content ON(menu.id = menu_content.menu_id AND lang = 'hu')
WHERE menu.type = 'RIGHT'
ORDER BY rank
LIMIT 1You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'DESC' at line 6
Query:
SELECT menu.*, menu_content.title, menu_content.lead, menu_content.tags, menu_content.text_id
FROM menu
INNER JOIN menu_content ON(menu.id = menu_content.menu_id AND lang = 'hu')
WHERE
menu.news = 'YES'
ORDER BY rank DESC