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 (18172,45515,18427,44764,44853,22509,14622,45517,18652,18042,44894,44685,13,44867,5410,34194,24411,44689,44775,17703,44873,44711,18301,44745,45180,17755,44848,3883,45072,17351,45043,18430,24438,4686,17981,44674,44640,17601,45567,44836,18894,44671,18650,45561,4765,45229,45277,17114,17657,18353,17009,17904,18996,44851,17756,18185,18648,18900,44856,44854,18572,44765,44858,45516,5993,45286,28313,43800,14402,44863)
Unknown column 'np.person' in 'where clause'