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 (44884,44863,16885,16935,44865,44531,18301,44765,18900,44766,24412,18572,45346,44869,17904,17657,4765,6609,44689,44845,18652,44768,18185,18688,6875,13,24438,4686,44669,44739,17839,44875,44837,18353,45051,10402,18430,24441,45072,45180,44894,17527,14402,6862,8753,44856,17556,44851,45517,28313,45043,44711,45515,17009,44836,18042,44745,18648,37057,17703,44764,6782,44868,17114,39676,44671,17756,5410,30986,19057)
Unknown column 'np.person' in 'where clause'