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 (3,45051,17703,44845,44867,44775,18996,44835,44869,39676,18572,45286,17556,18430,45567,18794,5259,44851,44640,18286,45229,17904,17009,37057,18981,13988,18446,17492,44531,44868,45277,5388,8753,22509,17657,17839,45346,45180,44894,44856,17351,44767,16935,17835,17278,17756,44884,28530,18648,6782,44739,19057,31354,4686,3883,44858,19078,44685,45042,44855,18042,44878,18652,45516,45561,45518,18185,16885,17848,32454)
Unknown column 'np.person' in 'where clause'