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 (45517,18427,39676,17114,34194,44866,44531,3,44687,18652,44868,18688,17335,18900,24441,22509,18996,30135,17839,17755,17492,18794,18185,17351,13922,18572,18430,44861,44845,18650,44711,44875,44836,44685,14622,44855,45561,18894,44764,44837,45180,44768,17756,31354,17904,44745,4686,44689,45516,45518,19078,44766,44884,44865,44894,45286,45515,45421,9341,44853,5259,8753,44869,45177,44767,6609,17527,36472,43800,24411)
Unknown column 'np.person' in 'where clause'