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