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 (6862,17601,28530,45262,44767,5388,44685,18353,17904,18427,44765,6609,19057,18650,34194,18237,17835,44894,18648,5993,44762,44861,4765,31354,44878,44849,18652,44856,18042,45229,44870,44745,18301,18172,44711,45043,39676,18572,8753,44855,44640,44766,5410,44866,16885,37057,44848,45518,6782,17756,44671,44873,18279,17351,13922,17771,17278,17981,45051,24411,44851,10402,44739,44865,19078,17839,44669,18719,17755,44837)
Unknown column 'np.person' in 'where clause'