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 (44739,45042,17335,44531,18794,18446,18172,45277,30963,17351,17278,45346,17835,17492,45051,45567,44858,44745,18981,45516,43800,6862,17756,17601,45072,18430,17009,17657,44873,17848,44767,44865,18042,44669,30135,17981,37057,16885,4686,17755,44863,18572,18237,44768,44835,44870,45515,44854,44849,44687,44764,44884,3883,36472,45043,22509,17114,18719,45262,18353,44855,18900,44845,6875,44640,31354,44875,44674,34194,10402)
Unknown column 'np.person' in 'where clause'