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 (44836,13988,6862,18996,14402,24438,44674,30963,5410,44851,44861,39676,5388,43800,45346,17756,44875,14622,44856,18286,45043,44870,44867,44775,44711,44745,17703,17527,37057,44873,16885,45229,31354,17839,18572,32454,17009,6782,44767,13,18894,18185,44669,45262,45277,19057,44858,45051,45286,28313,45567,18900,17556,18042,18446,18353,44765,3,24412,18650,44768,18279,18648,45072,13425,17657,19078,37267,9341,18430)
Unknown column 'np.person' in 'where clause'