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,45346,44870,30135,18185,17492,10402,22509,44687,17009,18446,13988,39676,44866,18572,5259,5993,45229,17527,44836,16885,44762,18301,28313,17335,44863,18688,14622,5388,45051,36472,17703,44867,44854,45180,17092,44835,18996,18042,4765,18981,45567,44711,44851,6782,19078,44745,43800,18648,28530,44767,44858,17601,18279,18900,44894,44768,18286,17848,17835,24441,6609,44766,45561,45518,17771,44884,44853,17114,44531)
Unknown column 'np.person' in 'where clause'