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 (17351,44868,31354,44878,44858,30135,17657,43800,44764,44848,44745,44765,18279,18650,17601,44867,17335,34194,18172,44674,5388,45277,3883,45043,18430,18648,24411,37267,45262,44866,18900,17771,44685,24412,44766,14402,16885,13922,18042,14622,18894,5993,44875,44837,45516,17755,19078,45072,45180,44873,45346,17114,37057,17009,44863,36472,44767,17703,44711,18446,45561,9341,45421,39676,17278,44775,17904,18237,17981,17756)
Unknown column 'np.person' in 'where clause'