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