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 (17839,44687,44858,32454,45043,5259,17703,5388,45072,18794,24438,44711,44848,18430,18042,45517,18279,16885,13988,44674,44836,17904,45561,44856,45180,44884,45518,13922,44837,17278,45277,18981,9341,44861,13425,17335,17835,45177,28313,44835,44873,44669,19078,44870,44765,44894,17237,8753,44849,18996,18894,17981,17657,44685,44767,6609,17009,44745,44762,4686,17114,44854,18572,44531,22509,45346,44863,30963,28530,18650)
Unknown column 'np.person' in 'where clause'