Error in query: SELECT DISTINCT(np.person) AS person, p.first_name, p.last_name, AS news_id FROM news_person AS np, person AS p, news_category AS nc LEFT JOIN news AS nx ON = (SELECT FROM news AS ny, news_person AS nyp, news_category AS nyc WHERE = AND nyc.category = 310 AND nyp.person = np.person AND = AND = AND ny.entry_active = 't' ORDER BY entry_date DESC LIMIT 0, 1) WHERE np.person = AND nc.category = 310 AND = AND np.person = AND IN (17981,45072,17114,10402,45421,18279,17009,44739,13,45277,5410,18301,17835,45043,44745,17703,17756,18650,17601,44848,44687,44863,44768,44868,9341,44861,24412,44764,32454,44878,44674,6875,18185,18237,44865,5388,18172,14622,44849,44894,45229,45262,44851,18430,45516,4765,45042,17839,13988,44867,18572,44766,44711,17771,44685,44765,18286,18688,17657,30135,17237,18446,44837,44875,45346,44858,37057,44856,17904,44689)
Unknown column 'np.person' in 'where clause'