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 (3,17981,22509,44851,44836,18185,17556,44865,44848,36472,44875,28530,16935,18894,44766,45177,44853,17114,44869,44868,30963,44861,18572,45518,44856,24412,18981,45180,4765,37267,44878,18430,45421,28313,44873,45517,19078,8753,44845,44762,13988,45277,34194,44767,45043,13425,44884,30135,18650,44669,44685,44768,18237,18446,39676,19057,13,44858,31354,17657,9341,44854,17351,17601,17756,17278,17237,44849,3883,44687)
Unknown column 'np.person' in 'where clause'