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 (44767,10402,45346,45517,45277,44854,22509,44766,44685,18688,45072,44869,44849,45177,17755,44669,24438,13922,18172,44875,44863,44711,44845,44853,17335,34194,45262,19057,13988,5993,13,30135,18894,44884,9341,44745,18430,44671,44765,3,18719,18981,18446,18572,3883,45051,18185,17092,17351,45518,18042,37267,43800,28530,5388,18652,17657,17601,44866,8753,44531,45286,17981,44848,44768,18353,39676,17835,18427,17114)
Unknown column 'np.person' in 'where clause'