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