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 (13988,17556,45177,44685,45516,30963,18794,18650,44863,44854,44711,44868,44669,44765,45518,36472,44861,45277,30986,18237,44640,44884,13922,45346,4686,16885,45229,44766,45517,45180,44849,17237,18996,18042,44858,44687,44867,45042,45051,45043,44836,44762,44853,44768,24441,17601,44745,6862,24412,18648,37267,16935,45561,44835,17835,17756,18172,37057,44775,14622,43800,14402,18446,44870,18981,17092,39676,17703,9341,18572)
Unknown column 'np.person' in 'where clause'