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 (18900,44531,17839,45051,18185,3,44775,17237,24411,17601,44739,6782,18894,45043,17092,18650,5388,18981,17556,6875,4686,44669,45262,45346,44762,45177,24438,19078,44851,44853,44765,24441,17771,45229,45515,44674,9341,18427,44866,17278,18996,17492,18237,24412,18719,37057,18286,5410,16935,30963,36472,32454,44894,44711,18301,44836,44870,17755,14622,17756,28313,44854,5993,45286,44869,44855,44867,44766,45180,18446)
Unknown column 'np.person' in 'where clause'