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 (6609,36472,45561,13922,44855,24438,44531,44775,13425,19078,44767,44689,17657,45262,18427,10402,18042,28530,44837,18353,13988,22509,18572,31354,44711,44865,17556,9341,16885,18794,44858,18648,16935,44870,37057,3883,44851,4765,17351,6862,44669,17904,17771,18996,18185,45277,17492,45042,18900,44867,45346,45043,39676,45518,45229,18981,44863,44873,17848,44868,44739,18894,44674,44849,44766,24411,17237,30135,4686,18279)
Unknown column 'np.person' in 'where clause'