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 (30986,44856,18042,44745,28313,5388,44767,17278,45177,24438,44851,45277,44861,45043,45051,44739,22509,44768,4765,17092,44849,17981,17657,19057,13988,44674,18648,18650,44711,16935,44870,18900,14622,18185,6609,17756,17848,44835,18794,44671,18286,37267,34194,44868,18652,44869,18237,45042,17703,24411,6862,28530,5259,17237,44894,14402,17351,18894,31354,44866,18353,18446,44863,43800,44836,13922,17556,18719,17009,5993)
Unknown column 'np.person' in 'where clause'