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