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 (31354,44861,14402,44873,9341,19057,18650,44837,18427,24438,44739,32454,39676,13425,4765,16935,13988,30963,13922,44854,44851,44884,44863,30135,6782,44868,44867,44671,45515,18794,18719,44836,17601,6609,17771,17556,45180,37057,18430,22509,45262,18353,4686,18042,17092,44775,44853,18185,44835,24412,18446,18301,17335,19078,17492,17114,44711,44869,18981,18286,34194,44856,17839,17755,3,44768,44870,28313,45229,45516)
Unknown column 'np.person' in 'where clause'