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