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,44836,45518,6875,44674,44669,17527,45042,36472,44711,44851,45180,6609,17114,14402,18900,44845,5410,18652,45229,17839,44858,44894,45051,14622,3,19078,44837,17904,10402,17657,44854,17492,44865,18172,17755,17835,16935,44853,44745,9341,43800,45516,18688,18237,44775,18981,44855,45517,17771,18353,44861,18301,44739,17092,24411,44884,18572,30986,30135,37057,44869,28313,5259,13922,44870,45286,39676,45277,45072)
Unknown column 'np.person' in 'where clause'