I do a SELECT to decide if I send a notification to a user. (10.3.23-MariaDB) First part checks if there are 0 unread notifications, if 0 no further