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 (45043,5388,44765,39676,17601,18172,17351,19057,17114,36472,45072,44855,17237,44848,44867,44640,44856,44767,14402,18042,44845,45180,24441,18981,45262,5993,17839,44878,44875,30135,17848,18900,44851,17092,18286,45518,17771,44689,44685,44837,45516,17904,44873,18996,17278,3,45515,45051,18572,16935,24412,18688,45561,31354,17556,45567,17492,17335,18237,4765,44868,17657,44671,44687,19078,32454,17009,18648,18427,17835)
Unknown column 'np.person' in 'where clause'