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 (18427,16935,44863,45518,5993,17237,14402,44875,28530,44845,45229,17114,44671,17835,18894,45042,17092,18996,44711,44739,44855,18981,18286,18430,18652,6875,18900,14622,44869,17351,6782,19078,44870,18446,45051,30135,18794,17755,17904,17981,44856,44837,37057,44867,45516,44865,17527,44745,44861,45346,44873,17756,13425,30963,16885,17492,17278,37267,45286,17601,5388,45262,44884,44765,39676,17848,44674,44848,18648,36472)
Unknown column 'np.person' in 'where clause'