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 (17848,45518,18894,44837,30986,30963,32454,24438,45515,17009,45517,44863,44845,44739,5388,13922,45180,18981,17755,45561,44855,37267,45277,24412,44849,44866,17703,5410,18794,16885,24441,44836,17981,45516,17278,18430,44669,44689,44865,18237,44851,17114,19078,44878,44671,44640,4765,18996,31354,44861,6875,44884,18185,44868,45051,44870,18688,8753,44835,44531,14402,22509,45072,45229,24411,3883,6609,45262,18172,45286)
Unknown column 'np.person' in 'where clause'