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 (34194,16935,17657,18286,5259,18650,45262,17835,16885,18648,30963,17601,44878,44856,10402,44870,17848,37057,17009,18996,17492,44640,44868,45229,17351,17092,45516,17556,18794,45042,44863,18894,44739,17755,18185,44851,18042,5410,44865,4686,18427,17335,44849,45421,44775,45043,44884,17237,24441,44845,44764,44855,17527,3,6862,44875,18688,6875,13988,13922,24411,18301,44858,36472,44674,45518,45346,18572,44854,17114)
Unknown column 'np.person' in 'where clause'