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 (17771,45180,14622,6875,45517,5259,44849,44869,18719,18286,45567,17904,6862,44762,44836,44768,45177,17756,13988,44878,45515,18648,44674,39676,44711,44640,44884,17237,44856,45561,36472,45042,44870,18301,45518,17527,44866,5410,18572,44835,30986,45051,19057,8753,17009,18430,45277,17492,44531,44745,19078,9341,24411,6782,37057,18794,28530,44689,24412,17755,17601,14402,18427,17835,17335,17092,44837,44739,17278,44765)
Unknown column 'np.person' in 'where clause'