For me this error occured when i update MariaDB from 10.1.36 to 10.2.18. So MariaDB 10.2 and newer have this issue. Downgrade to 10.1 resolving this issue.
Edit: world rows in MariaDB 10.2 is reserved, so cant be used. It should be changed to 'rows' or anything, but how do that ?