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 (18652,44711,18427,18572,18279,45517,18981,18650,5993,18237,44867,45561,17839,18900,45262,45518,45042,30986,37057,45567,44739,17556,44762,24441,44848,44849,44835,18648,32454,14402,17601,45286,13425,44894,44687,44851,44853,3,44866,17904,17755,17835,30963,36472,17657,45180,44745,18688,17351,17703,45516,44855,17335,44640,4686,3883,44531,24411,45346,44765,31354,44766,45515,39676,44767,44869,6862,44873,18894,17237)
Unknown column 'np.person' in 'where clause'