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='4abe992e46c6cdbe6b075e389cc6449d'' at line 1