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 (17492,17114,44764,44671,4765,3,45517,45518,44685,24411,14622,28313,6875,44869,45516,30963,19078,19057,44848,44863,3883,17237,45421,18172,18894,44837,45277,18648,5410,6782,45043,14402,44853,18185,31354,45072,44884,6862,17755,17703,18237,44875,44640,10402,45177,16935,17657,44856,44689,16885,18572,6609,44878,39676,44855,17556,44849,9341,44854,36472,45262,18794,45515,13,17981,18353,5388,45561,17848,44711)
Unknown column 'np.person' in 'where clause'