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 'ORDER BY d.day_number' at line 5
SELECT d.*, descr as descr FROM ex_tours_day d WHERE d.ex_tours_id = ORDER BY d.day_number