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 (18427,44766,18279,28313,44764,5259,6609,34194,44689,44854,18900,24411,44767,17556,44869,44866,18446,43800,44858,17839,44687,17092,3883,24412,17009,24441,17527,16885,30986,44765,17981,44739,44835,17278,44837,45277,44711,4765,9341,45567,6875,44884,24438,19057,45515,17835,44878,44671,17755,18648,44856,44674,18301,28530,19078,17703,45051,13425,17335,18572,4686,30963,44849,18894,45043,5388,10402,18172,45286,18652)
Unknown column 'np.person' in 'where clause'