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 (45277,18688,10402,16935,18430,18185,44849,44845,45561,17335,45072,45180,37057,17904,18042,44863,44640,44836,6782,45518,18652,3,17756,14402,18301,18648,18279,5410,44768,44858,17601,44884,17237,44669,24411,45042,5259,44687,8753,17839,44531,44875,4686,44851,44766,45517,45516,18794,17703,17527,44711,13988,6862,31354,6875,18981,18286,17755,17092,44674,36472,18446,18427,13,45262,44865,45346,19078,17351,14622)
Unknown column 'np.person' in 'where clause'