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 (44689,44766,31354,36472,13425,16935,19078,18650,3,13988,44868,44640,44767,3883,17904,17839,17556,44836,44687,45051,45262,30986,18719,18648,45567,5993,45180,18900,18172,45518,18894,45229,6609,18572,28530,18996,18185,18794,17278,4765,44884,17009,6782,17114,17756,37057,45177,17835,44856,17527,44835,45516,44867,45072,18427,45561,17092,17848,44711,13922,19057,44858,44861,17492,44849,18042,44669,18652,18446,6875)
Unknown column 'np.person' in 'where clause'