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 (44764,5388,44878,44851,45043,44867,17771,18301,18572,18185,44762,13425,44875,39676,30135,44671,9341,28530,17848,18894,45517,44854,18042,44868,28313,45567,17601,44689,17527,44685,18900,6782,18427,16885,37267,18279,18996,13922,45346,44855,44858,44863,18794,45229,44873,44866,44865,24441,45516,4765,44775,31354,17835,44849,17904,18446,44711,6609,44837,5259,22509,45561,17351,36472,45180,45177,45042,45072,44845,14402)
Unknown column 'np.person' in 'where clause'