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 (13425,44689,30986,44764,17755,44674,18185,44851,9341,22509,17756,44768,5410,39676,18446,28530,17601,45051,45421,19078,44775,44853,45229,18688,45515,5259,44849,16935,44863,44766,18981,13988,6782,18572,45561,44868,17527,45043,43800,44848,18301,17556,31354,44866,45286,6875,45277,24411,5993,18237,14622,44875,44640,18719,17703,44687,45177,17114,13,36472,3883,18286,17771,44856,18353,44765,17981,44767,18279,17839)
Unknown column 'np.person' in 'where clause'