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 (44765,45421,31354,37057,45180,18353,6862,44837,17335,17278,45042,44836,44766,44873,24441,17756,45516,17835,44711,45051,18172,10402,28313,45043,43800,45262,45346,18237,44685,36472,44856,16935,28530,44865,44768,44775,17114,45286,44863,18572,17556,45177,44894,17703,18794,39676,44764,13988,44745,17904,9341,18894,18286,13922,18652,44674,19078,18650,44853,44875,18688,44858,16885,45561,6782,44739,17839,6875,18981,18446)
Unknown column 'np.person' in 'where clause'