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 (13425,18900,45516,17237,44866,36472,16885,18279,44765,18430,32454,18650,17527,17492,18652,44671,45229,18301,44851,45518,37057,44867,14622,18446,44861,18648,3,6782,31354,18996,13922,44884,45277,13988,18688,44768,44836,45567,17335,44855,24411,17278,19057,45262,17848,24412,44894,18894,8753,44863,17756,45072,44849,28313,17981,30986,9341,16935,45346,18172,45180,44873,45042,18427,45051,17703,44687,44669,3883,5410)
Unknown column 'np.person' in 'where clause'