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