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 (5993,18996,17756,43800,31354,17556,18279,44848,18286,17092,44767,44870,17492,45518,44869,44873,44863,17848,18572,36472,18430,37057,30963,17237,5259,44531,32454,5410,16885,44884,14402,44669,18688,45229,45515,6875,45277,19078,17981,45072,44854,24441,44837,45286,17114,45567,39676,17009,45421,44687,34194,45561,17755,18981,24412,17335,44878,44867,3,18794,44674,4686,45346,17703,18650,44868,44851,44745,6782,45177)
Unknown column 'np.person' in 'where clause'