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 (17278,19057,5410,44853,44775,18279,14402,34194,44835,44640,17335,18900,16885,44867,44870,30963,45051,6609,45561,17009,44837,17835,18794,44689,18446,44685,44711,44836,44531,18237,44671,37057,45043,44868,10402,6782,44848,45515,17839,44863,24438,18430,30986,18172,17556,5259,45346,18572,18301,18650,4765,18652,17114,45421,17601,17657,18185,44884,44878,45177,17492,18688,44866,18894,44767,44894,45229,18648,44768,6862)
Unknown column 'np.person' in 'where clause'