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 (31354,18719,3,36472,44854,18301,44873,44875,44669,37267,45286,17756,5410,14622,17492,10402,34194,44768,6782,44851,18572,45421,44766,16935,44868,45043,45072,30135,45262,18688,18353,44764,17092,18648,18279,30963,44775,8753,17848,45042,45561,45346,44845,17278,44853,17601,44685,19078,18900,17981,44894,6609,18794,44640,44855,45051,44861,5388,44867,44745,13,17904,18996,44863,18430,17755,44849,45277,45518,22509)
Unknown column 'np.person' in 'where clause'