You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE (-1=-1 or CategoryID=-1 or Category1ID=-1 or Category2ID=-1) AND (-' at line 35. SQL query:
SELECT SQL_CALC_FOUND_ROWS 	
				CarID, 
				InventoryID, 
				`Condition`, 
				VIN, 
				`Year`, 
				MakeID, 
				Make, 
				ModelID, 
				Model, 
				`Trim`, 
				Style, 
				SellingPrice, 
				Mileage, 
				ExteriorColor, 
				InteriorColor, 
				DealerID, 
				DealerState, 
				DealerCity, 
				Certified, 
				NumberOfImages, 
				Images, 
				DateCreated, 
				CategoryID, 
				Category1ID, 
				Category2ID, 
				ParentCarID, 
				ViewCount, 
				 
				Tag, 
				RewriteUrl
				
				
					FROM 
					WHERE  (-1=-1 or CategoryID=-1 or Category1ID=-1 or Category2ID=-1)
					AND  (-1=-1 or MakeID=-1)
					AND  (-1=-1 or ModelID=-1)
					
					AND  ('U'='' or `Condition`='U')
					AND  (''='' or `DealerCity`='')
					
					AND  (''='' or DealerState='')
					
					
					
					
					ORDER BY CarID ASC
					LIMIT 0,50