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,17601,45042,5259,34194,17114,44845,18353,6609,17755,18900,13425,44856,14402,18648,13,6875,44762,18981,17657,45262,44836,45516,18430,44884,44853,8753,32454,17278,10402,45277,45561,44640,14622,44835,17009,5410,18185,18301,17237,9341,19057,6782,30963,17351,28313,37057,17981,4686,44849,18688,18794,45515,18427,18279,17492,45180,44775,44669,44867,18719,16935,17771,17556,45229,18042,45286,24412,18652,5388)
Unknown column 'np.person' in 'where clause'