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 (45277,44669,14402,17839,17771,44867,45421,45346,44775,44745,17527,31354,18301,18996,45229,17703,17756,28530,5259,22509,17492,45567,45262,44687,24412,44849,44854,44873,45180,44671,5993,45517,44884,14622,16935,30963,44865,44863,18172,44836,5410,44856,45515,44878,44768,44711,44739,13922,17657,44861,8753,44870,45051,18900,16885,44894,37267,18572,44767,44674,30986,45043,18652,28313,39676,45177,17335,44866,17351,45042)
Unknown column 'np.person' in 'where clause'