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 (18185,45421,22509,44878,17848,44853,9341,44687,39676,17237,17771,5993,44855,45517,14622,44863,18237,17657,45072,19057,44869,4765,44867,45286,18981,18301,44669,44766,19078,18446,44762,17114,44836,18719,44849,44858,6609,17556,45180,44689,45177,44745,31354,44711,18996,44671,17756,6862,45051,18172,28313,45561,18286,44775,13,45515,44640,24438,17009,18572,17755,4686,45262,17839,45277,3,44856,17278,45518,10402)
Unknown column 'np.person' in 'where clause'