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 (18172,18427,45051,4686,44863,44861,18894,18279,17009,44869,45516,16935,44765,28313,18996,4765,18981,44674,44865,30963,32454,44894,45043,6875,24441,44851,17703,45561,44836,17351,45515,44687,18286,45517,18572,43800,44768,19078,18900,24411,17835,45042,45229,17237,3,17848,13922,6862,17755,18353,18794,44878,44875,44856,34194,17771,37057,44858,17492,17756,45346,18185,5259,45180,30135,45262,18650,16885,44739,44867)
Unknown column 'np.person' in 'where clause'