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 (44674,18430,44739,18652,5993,18650,17335,18572,6875,5410,3883,17848,18172,43800,36472,14622,17009,18996,17278,45042,13922,45567,18688,17703,44851,44671,19078,30135,24412,6782,44867,18648,44711,13988,17092,44767,45177,17527,17351,31354,18301,18353,44856,24441,44884,44775,28530,4686,18279,18446,44878,4765,45518,44685,17904,18894,5388,44858,22509,17755,17771,13425,9341,44868,44865,44848,18794,16885,45043,13)
Unknown column 'np.person' in 'where clause'