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 (17556,44768,5259,45180,13425,18446,17848,45516,18430,18185,44865,44687,34194,6609,31354,44894,44870,6782,18172,44861,17237,17657,17835,44866,44775,44671,44858,18652,44766,18981,37267,17351,45277,44856,17092,44849,45043,3,24438,18894,18688,45229,44884,44767,9341,45518,43800,17771,24411,45051,44531,5410,44689,44762,18794,13,45567,13988,24441,44868,18996,39676,17527,6875,17756,44685,44855,6862,17839,28313)
Unknown column 'np.person' in 'where clause'