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 (18688,44669,44835,18894,44858,6782,44867,18185,44836,18279,8753,37267,18652,44873,44866,17835,44689,3883,45051,18286,44875,3,19057,36472,13,44762,18719,17848,18572,17527,17703,45277,13988,45229,45346,44848,13425,5993,45517,22509,45567,44745,44685,44711,43800,18301,45561,45421,28530,34194,17492,44856,6875,45042,44884,44739,44849,39676,32454,44865,18430,44854,18172,24412,30986,45518,44855,45177,44845,44674)
Unknown column 'np.person' in 'where clause'