You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND basketSession='56b3457498aa51c86c50fee6a0226c78'' at line 1