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 (5993,18446,44858,17601,44854,45421,44674,44687,17092,18301,18572,17335,45229,28530,6862,45286,17114,24441,18981,44870,17492,16885,32454,44775,13988,39676,44640,13922,45277,17756,45518,10402,18353,18719,6782,45561,16935,44739,19057,45262,19078,17771,45177,44764,17839,45517,6609,45072,9341,44762,45515,17657,18279,44856,17009,44861,18185,18237,44875,17351,17835,44884,44894,44711,44767,17755,44853,4686,18894,44745)
Unknown column 'np.person' in 'where clause'