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 (44848,18794,44851,44689,17237,3883,45561,6875,45518,37057,16935,17835,17703,18652,44836,45229,17556,45042,6862,44865,31354,44884,37267,44764,44674,44870,17601,6609,17904,18353,44640,44855,5410,45180,45286,18172,17092,4765,45516,44745,14622,44858,45421,10402,18430,36472,45262,28313,44835,18981,18185,18301,44875,17114,17351,13425,28530,44853,17492,5993,3,45567,44768,17848,45346,6782,44685,44765,19078,44869)
Unknown column 'np.person' in 'where clause'