Fixes #2543. Site active/inactive in the MSM was not working due to query select