SELECT * from menu_en where subid= order by level desc limit 1 1064 Something is wrong in your syntax obok 'order by level desc limit 1' w linii 1