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 (44851,44640,44870,18237,17009,37057,44848,44671,18900,14622,44669,44764,44767,45042,4765,17556,39676,31354,44869,45516,32454,13988,44867,17527,18446,17981,9341,30986,45277,44685,44711,44762,45051,6609,37267,4686,18572,45518,6862,36472,45229,44845,17756,44687,45346,5388,18648,5993,18650,45177,5410,44775,18286,6782,44837,18894,24441,34194,44739,18996,18794,16935,6875,28313,30135,45421,13922,17771,44856,44674)
Unknown column 'np.person' in 'where clause'