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