Error in query: SELECT DISTINCT(np.person) AS person, p.first_name, p.last_name, nx.id AS news_id FROM news_person AS np, person AS p, news_category AS nc LEFT JOIN news AS nx ON nx.id = (SELECT ny.id FROM news AS ny, news_person AS nyp, news_category AS nyc WHERE ny.id = nyc.news AND nyc.category = 310 AND nyp.person = np.person AND nyc.news = ny.id AND nyp.news = ny.id AND ny.entry_active = 't' ORDER BY entry_date DESC LIMIT 0, 1) WHERE np.person = p.id AND nc.category = 310 AND nc.news = np.news AND np.person = p.id AND p.id 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'