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