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 (18650,5388,34194,44894,44640,44669,30963,44856,45516,37057,44768,45518,17771,45072,45421,18042,44855,39676,18648,18185,43800,44875,17351,44767,18301,36472,37267,45180,45346,8753,14402,44851,44531,14622,17092,3,18430,17756,18688,17657,17278,18353,17981,45286,44745,44861,28530,17703,18652,44848,5993,13,4686,44870,44878,44836,45177,18900,4765,45567,45517,18794,44868,16935,16885,45043,44873,44867,13425,18719)
Unknown column 'np.person' in 'where clause'