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