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 (30135,44851,16885,45518,6782,44531,45515,17839,45277,18572,5388,17114,30963,17092,44640,24438,44739,3,13922,17601,37057,13425,18430,14402,45516,17835,44853,45286,18301,18794,22509,18648,18286,34194,44762,45346,18427,5993,39676,18981,5259,45043,18172,44861,18719,5410,17904,36472,3883,16935,8753,44775,45567,45180,44858,45042,13988,44837,6609,44768,6875,44836,44870,44856,44766,18652,44868,17009,44878,18042)
Unknown column 'np.person' in 'where clause'