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 (17839,4765,18430,44669,44863,31354,45262,17335,44884,44764,45072,18237,17556,44875,44531,17848,44855,45561,3,45567,44869,44775,17771,6862,14622,45515,45516,18286,44711,18648,44854,44671,44685,34194,3883,30986,28313,30963,24438,44640,18042,5388,44867,9341,18279,45051,18996,44687,45277,45180,18427,44856,6782,45177,44873,32454,17237,18981,17527,17278,44845,5259,44766,45043,6875,5410,16885,18650,17981,17114)
Unknown column 'np.person' in 'where clause'