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