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