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 'like '%1%' or like '%1%' or like '%1%')) order by avg_tubo_tanka desc,tank' at line 1