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 (39676,30135,45518,17703,17848,6862,13988,44858,17556,44767,17657,37267,44687,18430,44849,44868,45051,45561,44640,45517,5993,43800,17335,18237,19078,18794,16935,44866,44531,4686,18353,17009,44855,44851,44685,44689,44865,44745,45043,45262,28313,18650,18981,14402,18042,17492,45277,44869,44863,24412,18279,17755,17092,36472,44845,8753,44878,45042,18652,44873,17114,44669,44837,44775,45515,44884,5388,18301,18446,44861)
Unknown column 'np.person' in 'where clause'