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 (44836,6609,18652,45517,18900,6782,18279,22509,24441,14622,18688,36472,18353,45561,18981,17771,44775,18572,44835,43800,28313,44854,44669,18286,45515,45518,44845,31354,4686,18301,45042,44856,16935,24411,18794,17556,17351,44858,44640,44767,44687,44689,45072,34194,17009,44745,17981,44853,13,44671,44867,44531,5410,13425,44878,17492,17904,45262,6875,30986,45043,17114,44884,5993,45180,17755,32454,44851,18430,17092)
Unknown column 'np.person' in 'where clause'