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 (5259,24412,18572,45518,17237,17278,18900,44861,45277,18650,14402,6862,17771,44848,18353,45229,44766,18042,43800,44894,18427,4686,18648,44870,44873,17114,45177,18652,4765,9341,3883,17335,32454,45567,45072,17755,45042,13,18688,44768,17848,18301,5993,19078,44845,17556,45346,44669,44863,18719,44762,37267,44685,18894,17839,13988,28313,17092,30986,45517,18981,34194,18172,44765,17601,44884,17835,44687,44671,17904)
Unknown column 'np.person' in 'where clause'