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 (18185,19057,44875,16885,28530,45042,44640,39676,45517,44764,45177,3,17278,44689,45346,31354,17771,17335,44762,44531,44863,44894,44835,44767,44854,45518,24438,44711,5259,18042,45277,44836,45043,6862,44669,18279,44768,18652,18981,44855,45286,44685,18648,45180,45262,18301,44866,17756,36472,5410,44745,45516,13,44867,43800,17981,44884,44861,44849,44766,44775,18650,17351,45229,18572,18900,44837,6782,34194,18430)
Unknown column 'np.person' in 'where clause'