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