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 (17092,17009,13922,32454,17839,18185,44711,5388,44835,44870,18688,18427,44866,45180,13425,14622,34194,44878,44868,44674,45561,44768,18719,28530,18430,17755,44863,18794,45516,13,28313,44894,16885,17657,30963,17492,5410,3883,18286,17703,45518,44867,44853,31354,17771,45517,44775,44856,8753,9341,18648,18900,44765,17237,18301,18172,44849,18981,45286,44861,45072,17351,18042,44745,45421,44858,45346,24438,44845,45515)
Unknown column 'np.person' in 'where clause'