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 (43800,28313,18648,44861,16935,45421,24438,17237,10402,44884,18572,45516,24411,45567,17601,19057,18794,18430,13922,45042,44671,44745,18427,44765,9341,18996,44767,36472,44762,44858,44870,44873,17771,14622,44835,44849,45180,4686,17556,44766,5410,45229,39676,28530,18650,19078,8753,44687,44875,18981,45051,18185,44856,24412,45517,18446,18301,13988,6782,17278,44711,30963,17904,45518,44775,44837,18286,44855,44867,18719)
Unknown column 'np.person' in 'where clause'