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,18688,44711,17771,6875,18237,44851,17848,16885,5259,28313,44894,18042,44870,44845,44764,44671,44768,44884,44853,44674,45229,5993,36472,17835,45421,44766,17492,17756,18648,44875,18185,18894,44849,44858,17601,43800,37267,30135,45051,18650,24411,45043,44863,45277,44866,45346,4765,18353,18279,17839,44869,18794,44856,44762,5388,18981,45180,45177,18996,18572,45286,45515,44687,44835,18652,45567,44837,17009,44531)
Unknown column 'np.person' in 'where clause'