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 (45180,5259,6862,28530,32454,6782,18279,19078,4686,45421,13,44669,17601,44873,44762,18981,44867,45346,44863,17771,44766,44858,44685,39676,5388,44739,18900,18719,17351,45177,43800,17335,17556,17114,44848,18572,44640,44868,6609,24412,44849,14622,45229,22509,44855,45516,44671,44875,17848,17657,37267,44711,44878,3883,44768,13922,28313,44775,17835,45051,8753,18446,17755,34194,44531,45042,44866,45043,17756,18652)
Unknown column 'np.person' in 'where clause'