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='5eb82552d2187d0453791e7d3004e39e'' at line 1