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