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