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 (44848,17755,39676,28530,24441,44767,18042,19078,45421,44894,44671,45180,44854,17009,45516,14402,44836,18286,17835,9341,44884,18572,10402,44873,45262,13988,18446,17756,34194,44870,17657,18237,14622,45177,24411,18719,24438,45277,18794,31354,30963,17527,45042,17492,17703,45043,8753,45561,17556,44845,44875,18185,17278,44869,17839,44640,18650,44711,44762,45567,18981,37057,45346,44768,18172,44856,44739,6782,44863,44531)
Unknown column 'np.person' in 'where clause'