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 (44856,24412,18430,44767,44640,6875,30963,9341,44849,13988,19057,44671,44689,3,17904,28313,18688,18996,5259,30986,17755,44745,45277,44869,44766,17657,18237,37267,44868,18900,44851,44531,44863,17009,18301,24441,45561,22509,45421,44867,44835,17114,28530,24438,45177,18719,13,5388,44765,44674,17556,45180,45346,17756,10402,36472,17351,18446,6782,45518,44768,6609,44865,18794,44884,44866,18279,13425,18648,18894)
Unknown column 'np.person' in 'where clause'