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 (17009,6609,44687,3883,45286,44837,44866,44836,24438,44845,17839,17278,18353,17904,28530,17848,14402,32454,18279,17703,44870,45515,43800,44884,18794,18894,44867,44849,17092,17114,44854,19078,44745,18301,45346,17237,44861,17657,45517,30135,45177,14622,44835,44689,8753,6782,44768,45229,13922,24441,44894,44875,44765,22509,45043,44865,30963,19057,44640,44873,44674,44531,18237,45051,18981,39676,18430,31354,18719,44858)
Unknown column 'np.person' in 'where clause'