Server shutdown in progress

SELECT 	rat.* 
							FROM   	imo_new_observation_rate as rat
							JOIN 	imo_new_observation_session as ses ON ses.session_id = rat.obs_session_id
							WHERE   rat.start_date >=  '2017-12-04 00:00:00' 
							AND 	rat.end_date   <=  '2017-12-20 00:00:00' 
							AND    	rat.shower      = 'GEM'
                            AND 	ses.pending !=  -2