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 (44861,44768,44745,44837,6609,45043,30135,44870,44739,18353,17848,18981,45229,44869,17092,18719,6782,44856,17771,45177,44853,44855,18185,5410,44858,44836,45517,17556,24441,39676,45277,44767,44848,18894,44866,18427,17703,44775,18648,44894,45042,44854,44711,17527,18172,5259,18650,17657,17351,18430,36472,45346,18237,45072,45561,5388,44685,44884,30963,10402,45180,44849,4765,18688,44851,5993,44845,17335,44762,24412)
Unknown column 'np.person' in 'where clause'