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='29b8fc37ac85206476a2f99f68b5aa1a'' at line 1