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 (44669,44868,43800,18427,44765,18996,44863,44851,44745,18652,17904,18172,44867,45043,5388,28530,44854,44767,34194,13,17981,37267,44866,17092,44855,18446,44858,17114,16935,44768,44849,44671,30135,18237,17756,45072,17009,17848,18286,13988,44894,19078,5259,45517,32454,18279,18719,18794,17527,18572,45567,45042,18650,18900,24411,44865,18894,44845,44766,44836,30963,44687,44884,4765,44853,45346,17839,17492,18042,45229)
Unknown column 'np.person' in 'where clause'