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 (44858,44878,45286,17527,44870,6782,17351,44867,30963,24438,3883,44775,45072,17556,44766,44767,45042,28313,45517,17839,18650,45515,44848,18427,9341,5259,19078,4686,39676,18719,44863,17835,45180,37267,16885,18430,44851,18286,6862,44711,17703,17492,24412,44762,28530,44640,44765,34194,18301,44875,18894,6875,10402,18688,30986,36472,13988,18446,44835,24441,45262,44836,18996,31354,44764,13922,3,18981,45567,44855)
Unknown column 'np.person' in 'where clause'