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