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 (17771,32454,36472,44711,30986,44671,6862,44894,18652,16935,44870,45346,44689,5410,44867,45043,44865,44685,45567,18427,19057,18430,18981,17009,17848,44856,24441,17703,18237,6609,44866,44884,45177,45517,44845,45072,6875,44837,17756,44853,18042,14622,17351,44775,45229,18279,18719,17492,39676,18286,44854,43800,44873,9341,24438,44851,44861,14402,45277,24412,18650,4765,17904,45180,44745,44768,34194,18894,45286,44767)
Unknown column 'np.person' in 'where clause'