SQL/DB Error -- [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 tariffs.trf_contract_length<>0 order by Deals.dls_total_cost' at line 7]