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 (4765,18652,17601,5410,17556,44868,44531,44745,45518,17009,17114,30963,13,44851,45561,18648,36472,18996,44669,44711,45180,14622,18286,6875,17703,18427,18900,19078,44685,17839,44837,44858,30986,44878,13922,44870,44739,44689,44867,44855,44849,44674,17848,13425,18279,3,18794,24412,44856,17335,17092,18185,6609,6862,44765,44768,44854,45346,31354,45567,9341,8753,45042,44865,45072,45043,44869,17237,14402,18446)
Unknown column 'np.person' in 'where clause'