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,6782,18652,17556,44775,44894,18301,4765,44674,17703,13922,17237,45229,43800,18042,9341,17009,13988,44861,18237,18648,44764,44765,19057,44687,10402,44837,13425,45567,44875,44849,30986,45043,3883,44767,44669,44851,44689,6609,18353,45286,44766,5410,44865,45518,45177,45072,44884,24438,17771,24412,17527,45516,28313,18996,5388,14622,45042,18572,18286,44873,44685,44856,44711,19078,44866,36472,18427,44878,45561)
Unknown column 'np.person' in 'where clause'