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 (17839,18650,3,17981,44848,17703,44768,24411,44767,17114,17556,44687,44854,45072,45262,44689,19078,17657,17835,44674,45180,18996,44739,44856,44671,13,18430,18652,45515,9341,44868,45346,44775,18353,18981,28313,44762,16885,18185,37267,6862,22509,44858,13425,44766,18446,4765,44866,44836,30986,44531,45517,44884,45567,32454,18427,45518,18900,44669,44835,31354,44849,5259,17351,44867,45516,18301,45229,44845,44878)
Unknown column 'np.person' in 'where clause'