MySQL convert to MongoDB Query style in PHP