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 (44849,19078,3883,44853,44671,16885,19057,37057,44848,17237,18981,17771,17756,44762,45177,36472,44640,44768,45517,18185,5388,44837,17351,31354,24412,17601,14622,18237,17114,45346,28530,45277,44687,17335,44775,18430,17839,44767,44765,44835,18650,32454,17527,45180,5993,17703,18301,45042,44745,44674,6875,44854,8753,17492,17755,4765,44867,30963,17092,44884,18900,45072,17657,44869,16935,44866,44870,10402,18652,13425)
Unknown column 'np.person' in 'where clause'