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