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