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 (44640,30135,18996,32454,17904,31354,45177,45561,18900,30986,45277,44762,18279,4686,17601,17237,44531,14402,45043,44851,44856,18042,44845,44858,44775,5388,44884,6862,44764,17657,17839,44669,44767,18353,18648,45286,45180,17278,18650,13988,10402,19057,17114,44861,9341,44855,44768,45262,19078,45229,45567,17009,18430,45072,18572,17771,17756,30963,44867,44849,3883,45421,17556,18688,17527,45518,44765,18185,44866,24412)
Unknown column 'np.person' in 'where clause'