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='0470e9ea947f4d8b9f06fb236f212618'' at line 1