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 (39676,3883,30986,44853,18042,6862,44711,44765,44866,18719,44768,44884,44836,45515,44854,8753,16885,30963,18430,45042,44671,24411,44865,44863,18894,3,18981,28313,45043,24441,17556,17771,32454,31354,17601,13922,17237,44878,5259,18185,18648,6782,17755,18172,44858,17527,14402,13425,44689,17835,17114,5993,18301,18688,45561,5410,44855,44867,18650,44869,34194,13988,44762,5388,10402,18427,4686,44764,18237,18279)
Unknown column 'np.person' in 'where clause'