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 (45515,44849,17904,13425,30986,17092,44671,44863,44848,3883,44766,6782,45286,45229,44685,45177,6609,44868,17335,44875,45277,44884,24438,8753,44870,44853,45561,44674,16885,45567,17839,44669,17703,18996,44764,18648,18688,17556,44855,37057,45042,3,44531,18981,44689,17527,17114,18650,24411,44854,44765,14402,6862,31354,18279,45051,9341,18446,44867,44835,17237,18652,45518,45421,44873,44856,44869,30135,34194,19057)
Unknown column 'np.person' in 'where clause'