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