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 (44867,24412,18648,32454,18900,31354,17601,18279,30986,44674,17278,34194,19057,45346,44869,18427,6862,44765,18446,19078,18996,17114,43800,44836,18572,44870,45180,44766,28313,44849,13,45421,45286,44531,44884,17657,22509,17839,44775,44853,44762,45515,44855,45516,18650,18794,3,18237,44739,45561,45517,44894,17755,44671,28530,44837,5410,44868,5993,44854,13988,44873,44856,44669,45043,17703,30135,30963,17981,17237)
Unknown column 'np.person' in 'where clause'