select dest_rates_hot.* , rates_dates_hot.Dates , rates_dates_hot.Id as dateID , DATE_FORMAT(Dates,'%d/%m/%Y') as date1 from dest_rates_hot join rates_dates_hot on rates_dates_hot.IdRates= dest_rates_hot.Id where Destination= and Dates>'2018-06-21' order by Dates
Mysql Error Number 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 Dates>'2018-06-21' order by Dates' at line 1