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 (44739,18301,18185,44835,45180,17703,31354,30963,44851,44856,6782,44687,17835,17904,44854,45051,44640,24438,44671,44837,39676,18237,28313,44745,17755,17756,18794,18900,18996,36472,17848,45567,44845,44767,6862,8753,45561,44836,45515,18981,44531,4765,44878,18430,45277,44884,43800,17092,28530,32454,3883,17601,13,17335,44849,18427,14402,16935,16885,17237,17839,14622,13922,17278,44775,37057,17657,17771,18446,44848)
Unknown column 'np.person' in 'where clause'