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 (17904,9341,18996,44835,45262,28313,44845,44766,30963,17335,45177,3,6782,18237,45043,19078,37267,44687,36472,44894,44745,17556,44875,44867,5259,18688,44878,18719,22509,18794,17848,44531,14622,44855,18286,44870,17092,44767,44768,45561,13425,17114,44669,19057,14402,45180,44764,18894,45042,17527,6609,44853,44640,17601,31354,18301,44873,17981,44765,16935,18430,34194,44868,16885,39676,17657,17835,44711,17278,37057)
Unknown column 'np.person' in 'where clause'