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