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 (34194,13988,19057,16885,45516,18996,44767,6782,44851,22509,44894,6862,36472,44869,18794,45277,17492,44711,44845,45180,3,30963,4686,31354,44884,44861,44640,45177,17981,44855,44875,44853,13425,17771,18648,18719,17556,16935,28530,17835,13,17755,18900,32454,45518,14622,45517,44669,44849,44848,44837,28313,17092,17114,17904,44868,5259,45072,44689,45051,45286,18279,6875,17351,44687,17756,45561,44766,45421,45346)
Unknown column 'np.person' in 'where clause'