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 (44767,5410,44865,13,44848,30135,18353,17848,44640,4765,17835,13425,44853,5388,17839,18652,17771,37267,17278,45346,17755,44854,44766,44836,44845,18688,44739,17904,18894,18301,18172,45561,44669,44835,44884,44765,10402,45421,44685,14402,17556,34194,4686,17527,43800,44745,18981,18648,18572,18794,45177,6782,44689,17351,45262,36472,45518,30963,17092,16935,19078,45277,44858,5993,44851,14622,45180,45286,45042,44867)
Unknown column 'np.person' in 'where clause'