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 (18279,18301,17556,22509,44531,44875,18794,18996,17009,8753,17848,45516,45277,44766,44866,36472,45262,18648,17657,45518,4686,17703,45180,44674,17839,44856,45421,44854,6782,45286,44863,44669,24441,16935,44878,17981,44685,44689,18719,19078,44837,44836,44687,17601,44745,5410,44849,44762,18430,44764,45177,18172,45561,18688,30135,17092,24438,17756,45515,18900,18894,16885,19057,17527,17114,39676,44884,45346,44848,44711)
Unknown column 'np.person' in 'where clause'