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 (34194,24411,17492,44866,18996,13425,14622,44764,30963,18427,18446,6875,44739,17835,44689,17839,4686,18900,17114,18237,44863,17756,36472,18185,45229,45421,44870,32454,44855,18353,5388,17981,44873,45072,13922,18430,19057,44858,8753,45277,44861,14402,17527,45043,44867,45286,18894,10402,17556,45518,13,6609,44669,44765,17771,37267,16935,6862,18286,9341,45177,45042,17351,44711,44640,24412,17657,17755,6782,44848)
Unknown column 'np.person' in 'where clause'