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 (17703,43800,18688,17981,44875,45567,17335,45346,17839,45516,24412,18650,3,45515,17556,8753,24438,44640,17835,44867,14622,30963,31354,45042,44671,19078,18794,6862,45262,17092,17351,6609,17527,18894,14402,44762,44745,17756,32454,34194,9341,44711,28530,45277,4686,44866,18430,13922,24411,17657,5993,37057,44854,16885,17904,18648,44837,17848,45072,44836,45051,17278,28313,44855,44858,39676,18572,18279,44739,44764)
Unknown column 'np.person' in 'where clause'