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 (44766,44531,5388,5993,44739,45229,45277,44861,13425,18894,17771,39676,45561,44854,45518,17114,17527,6875,4686,44875,24411,36472,45262,17335,18650,45346,19078,44858,31354,13988,17351,18286,18794,24412,44764,45515,44878,44836,44867,45421,32454,18427,44835,24438,44685,18185,44711,44855,37057,17092,18430,45177,18652,17839,44768,17755,6782,10402,19057,17009,4765,44674,28530,18237,5410,44865,17835,13922,45051,45567)
Unknown column 'np.person' in 'where clause'