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 (44711,10402,45051,14402,17092,45072,44836,17114,17278,17657,31354,44856,18981,17756,28530,17703,24438,17601,45518,45277,4765,18794,18719,17009,5388,44671,6782,39676,9341,45517,44837,45346,17556,17492,44869,28313,44853,17848,44768,44745,45286,45229,30135,14622,44687,13,13922,44875,45043,5410,44765,17335,19057,17835,30986,18353,44855,18185,44669,18996,44861,18650,45561,5259,44739,44848,36472,18648,24412,44878)
Unknown column 'np.person' in 'where clause'