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 (44674,45518,17237,17839,17756,44762,44870,45229,6875,6609,18572,19057,44765,13,17009,45286,18279,4686,16935,44875,44669,45051,17981,44745,36472,17278,44866,17092,44671,44836,5993,18652,45346,18237,32454,45042,44835,9341,44854,44849,34194,5259,6782,45421,17114,16885,22509,18996,45517,18427,17703,10402,17835,44767,44739,44863,37267,44856,45515,18301,44853,44640,45177,18446,18042,45043,13425,24412,4765,44685)
Unknown column 'np.person' in 'where clause'