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 (30986,17335,44861,5410,17092,19057,44875,44848,18719,24438,18237,39676,45515,37057,45229,3,17657,17848,17703,44531,44768,44835,43800,44858,37267,28313,44765,44640,18286,17556,18981,18430,17839,44669,9341,17114,24441,6782,22509,32454,44762,44869,18900,24412,44855,45042,18894,5388,45180,10402,45516,44868,45177,44873,17904,45072,44764,17601,45043,45051,16935,19078,18794,44854,18648,44745,44767,44870,30963,45518)
Unknown column 'np.person' in 'where clause'