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 (17657,18042,16885,44873,44762,10402,37057,17114,13425,44764,39676,44856,44894,17492,17556,45177,44640,30135,44854,18900,44739,44766,44878,45346,8753,18185,44836,18719,18353,19078,44845,44858,45567,19057,18172,44765,44775,45042,45517,44671,9341,44687,14402,44867,18446,45421,17848,18650,18894,45043,17527,6609,18572,44870,6875,17335,3,17771,17092,44869,44837,17904,4686,43800,45515,44669,13922,45516,44884,44689)
Unknown column 'np.person' in 'where clause'