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 (45346,44768,44884,17756,31354,17755,44671,24441,5993,18042,18894,45051,18353,18430,18719,44835,9341,44765,45286,17335,18172,44854,17556,45516,6782,44870,18652,28313,17351,44669,44531,45277,28530,14402,4686,45180,44873,44869,45177,3883,45043,18286,44865,17527,39676,13988,13,44711,24411,44674,17601,44836,24438,18794,44762,44878,44866,44856,44689,5410,17114,5259,44867,44875,18648,44849,34194,24412,17009,3)
Unknown column 'np.person' in 'where clause'