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