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 (18894,17981,44685,18237,44851,18279,18572,17114,17335,44848,44856,18446,19078,18648,44853,45042,44868,45518,44745,44870,17556,22509,44863,45561,39676,44878,17351,44849,5259,13922,4686,45229,44669,17237,45180,4765,30135,18185,18981,44855,28313,45177,17492,44854,5410,18900,44674,34194,43800,18996,17092,17278,44869,44837,44867,13988,45277,44858,16935,19057,18301,30986,44875,13425,18427,44836,6862,45262,18042,45043)
Unknown column 'np.person' in 'where clause'