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 (44745,44870,17835,44837,45180,44640,44849,3,17771,18430,39676,17981,36472,14622,18650,16935,17009,18237,45177,17092,24438,9341,5993,44851,17335,4765,17756,17755,44687,22509,16885,44765,44669,44894,18572,8753,37267,18279,28530,18981,17278,34194,10402,44861,5388,44854,45072,45346,18719,44853,45561,17237,32454,44873,18446,18353,45517,44764,44845,18185,18996,17703,17351,45051,45262,3883,18894,44768,17657,44671)
Unknown column 'np.person' in 'where clause'