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 (44869,44875,18688,44894,17755,45277,45042,36472,44853,6875,45229,30963,6609,18042,19057,17981,3883,44836,28530,17278,45346,6862,17556,18286,45051,44861,44765,45561,24441,17703,8753,39676,37267,3,18652,17904,17009,17848,44689,31354,18237,17527,44762,17756,18648,24438,18301,17657,13,44873,44867,45043,14622,18794,17835,45180,17335,10402,44866,45567,18427,17839,45517,44674,24411,44845,30135,44870,44775,18900)
Unknown column 'np.person' in 'where clause'