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 (18996,24438,17755,44640,16885,18572,44863,4765,18688,44739,18279,17556,44837,44866,13,45177,18427,45516,36472,45277,44853,44685,18894,31354,45561,3883,45518,45043,17835,44855,18237,34194,28313,18430,44875,17114,44767,45229,8753,22509,18446,18185,44845,17335,44858,17839,16935,17092,44745,44867,44669,18650,44768,43800,44869,18353,6782,17848,19078,44762,24412,37267,17009,44671,3,24441,17237,45346,18794,44868)
Unknown column 'np.person' in 'where clause'