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 (45346,24411,44711,44868,34194,17703,37267,44863,18981,5259,30986,44845,45042,18894,18719,4686,44870,45421,44836,37057,44866,17771,6862,17981,17527,18688,6609,13988,44861,8753,18301,45518,24412,5993,45043,44766,3,18185,13,44875,30135,17278,18572,31354,45515,18427,44851,17556,44873,28313,22509,18353,17835,18172,36472,45516,44671,18996,43800,44835,44765,44669,44685,39676,14402,19057,44762,44775,18279,18648)
Unknown column 'np.person' in 'where clause'