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