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 (44531,37267,17835,44867,44894,4686,5993,18648,44689,17556,18996,18650,45042,18894,14402,24438,30986,6609,17237,18446,13988,44845,44674,44711,36472,45051,44835,17756,30963,24441,45516,18981,44640,18185,5259,17755,5410,13425,6875,18427,45346,44837,44873,4765,37057,44858,17492,45518,28530,17703,17657,45262,44868,3,17114,17351,44853,9341,18652,18688,44884,8753,44854,22509,6862,30135,45072,3883,45277,45561)
Unknown column 'np.person' in 'where clause'