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 (45262,28313,45515,17237,16935,6875,44765,44856,18900,17835,44711,17771,13,18353,19078,44866,34194,17492,44865,18279,44689,44767,30986,28530,6862,44867,17114,5410,44674,44836,45567,45042,5993,36472,17278,44768,17703,24438,18427,44858,44669,6782,45051,18688,18446,18650,3883,44845,4686,45561,18794,3,44884,44775,10402,17904,17839,37267,17981,45421,45517,44764,44869,16885,45180,18286,44739,39676,18572,44745)
Unknown column 'np.person' in 'where clause'