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 (17756,24441,18172,5259,17839,44853,17771,18301,13922,44845,45229,6875,5410,18894,43800,44764,45286,39676,44878,13,10402,36472,13425,44671,45277,44856,16885,44884,30986,18981,18353,18185,18648,24412,18719,17237,28313,18572,8753,44836,44858,44685,45043,44861,44868,45072,44867,17335,6782,17657,9341,31354,18042,44875,44640,45180,17835,17848,19057,24438,44866,45042,28530,45567,17601,17278,44739,17981,18688,17351)
Unknown column 'np.person' in 'where clause'