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 (44837,45517,44873,44870,44848,16935,6862,17237,18430,45177,17601,44867,44894,5993,13922,18648,18042,44865,44768,24438,30963,18353,45262,44711,44878,44863,44856,43800,17657,17756,17278,44851,17703,28530,17755,18650,17335,14402,24411,17835,45229,44640,44531,44671,6782,44869,18794,18688,17848,16885,31354,5259,45421,13,18652,18286,18719,18185,44687,45180,18996,44853,17492,44836,45518,45346,4686,24412,8753,18981)
Unknown column 'np.person' in 'where clause'