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 (44854,6782,18353,36472,24411,28530,44685,17839,45346,6609,5259,18172,37267,44674,17351,4686,44764,6862,18900,45517,18279,44875,34194,17237,13,44851,6875,44878,17556,43800,18652,39676,44766,44669,44762,17527,17657,45421,19078,3883,44866,17335,44689,17278,18301,30963,18894,44767,45518,18286,5388,44849,45177,19057,3,44531,17703,30135,45515,44845,45561,5410,18446,44861,13988,45043,45277,44863,17755,18430)
Unknown column 'np.person' in 'where clause'