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 (17114,44853,17278,45286,44669,17703,17771,45043,45515,18301,37267,44867,44854,32454,24412,18650,18446,13425,28313,3,10402,5388,4686,44865,44745,18237,17601,18042,37057,3883,44671,18981,44878,18900,45262,39676,44835,44858,31354,17981,44640,45561,44856,30986,30135,45277,8753,17756,6609,17835,44837,18430,17527,18172,44851,44868,44894,44674,44845,44870,44869,44855,17904,16935,28530,13922,18286,6782,6875,45567)
Unknown column 'np.person' in 'where clause'