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 (44863,44762,45518,44764,17904,10402,17981,5993,44685,45229,5259,44669,44765,44870,45561,17351,44674,44775,17848,44745,18237,17756,17703,44858,16885,44875,28313,44867,3883,18185,45346,22509,44873,18430,43800,6862,18900,44849,45042,18652,34194,5410,6609,44845,44766,18794,13425,17278,18894,37267,18353,19078,17114,9341,18648,45262,44848,44640,44768,37057,17335,28530,44687,18301,30963,44854,39676,44868,44866,44861)
Unknown column 'np.person' in 'where clause'