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