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