hi i have the following query
SELECT MAX(CAST(SUBSTRING_INDEX(battles,';',1) AS INT)) from battles;
the query work well in my localhost (XAMMP) , But anywhere else it gives me this 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 'INT)) from battles' at line 1
example : http://sqlfiddle.com/#!9/e19e8c/2