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 (6862,17771,18981,44878,44836,45561,44764,13425,6875,45043,17351,44867,45072,30963,17492,18430,24412,45177,44894,44671,18648,30986,44775,44851,34194,44848,45051,4686,44739,45516,44711,19078,18279,18185,45421,18688,17981,36472,44853,44855,39676,5993,5259,3883,13922,18353,17278,6782,37057,18042,18427,44674,32454,17755,45567,44745,37267,18900,45042,17114,44766,24438,18446,18652,18996,16935,17835,44858,44689,14622)
Unknown column 'np.person' in 'where clause'