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 (24438,17839,18688,17904,24411,24412,30986,17114,44867,45517,45229,18172,18900,32454,44669,45346,6862,44861,44671,18185,13425,44875,18279,45051,17556,44854,45561,17755,17335,45177,44884,44764,18286,19078,18353,44765,18301,44848,18996,44762,44849,44870,37057,5259,6782,18042,39676,28530,17351,44869,45515,44640,44836,44863,17703,17009,45286,24441,44674,44845,17848,18237,37267,30963,18981,17981,5410,45516,45421,44873)
Unknown column 'np.person' in 'where clause'