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 (17981,44762,18279,17556,17756,44531,44858,44835,18719,24438,45042,44766,45229,44711,17092,17835,3,45180,4765,18446,43800,31354,34194,17601,45561,45043,44854,13425,18572,16885,28530,44868,18237,18427,16935,17657,18286,39676,30963,6609,17839,44848,44869,45286,44853,24411,44870,17237,14622,18650,37267,18042,45262,6862,24412,45516,10402,18996,18185,45515,18894,28313,17114,44861,44685,44884,44849,5410,44674,30135)
Unknown column 'np.person' in 'where clause'