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 (43800,24411,14402,30963,17114,6862,17492,18650,5259,9341,18427,44711,44894,18301,17556,16935,37057,5388,17335,44837,18648,44856,44835,32454,18446,44853,10402,8753,6609,44878,45286,44870,3,22509,44775,44689,17755,44745,13922,18237,5993,17848,44836,44875,17703,45517,18279,45561,17904,39676,45515,17237,34194,44766,13,44851,44869,17981,6782,18688,17839,24441,44768,18981,44739,31354,17527,37267,45043,17351)
Unknown column 'np.person' in 'where clause'