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 (17657,30135,4765,17756,18981,44836,17556,44640,45516,18185,44845,45346,44762,13988,17114,45421,6862,45043,44853,44865,17009,18430,44767,16935,45277,45518,45229,6875,17835,44775,45072,44685,5410,34194,17527,18237,17981,43800,44768,5993,18650,39676,44687,44855,5259,18446,18286,17351,44674,45177,44856,4686,18996,44851,45515,44766,45051,44745,44858,45180,18172,45561,28530,31354,17703,44764,44837,44863,18900,30963)
Unknown column 'np.person' in 'where clause'