[ticket/12493] Fix user disable PM receive sql query

This fixes a bug where a user A could not send a PM to user B when both users
allowed other users to send them a PM.

PHPBB3-12493