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