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 (5410,18650,44768,44853,31354,19078,44884,44685,18572,5388,18794,4686,17114,17981,44764,18719,18996,18172,17237,17771,18042,24412,22509,45177,45561,17839,44762,28313,44848,18286,44858,6782,44863,44766,45043,18279,43800,44865,44875,45515,18427,44869,30986,18430,44836,18652,45042,45262,44835,44868,6862,44856,13425,44845,17703,18900,8753,44894,45072,30135,45346,9341,5993,18185,44640,45051,28530,45229,24411,5259)
Unknown column 'np.person' in 'where clause'