Problem: Receive either “1630: FUNCTION MAX does not exist. Check the ‘Function Name Parsing and Resolution’ section in the Reference Manual” or “1305: FUNCTION MAX does not exist”.
Solution: Remove all spaces between the function and the parenthesis or set sql_mode=’IGNORE_SPACE’;
This is causing the error:
SELECT MAX (id) as something FROM Example
This will work correctly:
SELECT MAX(id) as something FROM Example