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 (44689,44671,8753,37057,19057,17657,44685,45262,44775,17114,24441,3,45180,17771,18286,44745,16885,45421,17755,44873,5993,44764,45051,45286,13922,18652,3883,44884,18446,17278,18572,18900,18688,17703,34194,44669,24438,44894,45072,44851,37267,6609,45177,4686,9341,19078,44869,44845,44848,45561,17848,44854,31354,6875,28313,39676,17756,24411,44867,44865,18430,44856,18185,44836,30963,44853,44767,44861,10402,45346)
Unknown column 'np.person' in 'where clause'