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 (17351,44764,18894,34194,44853,3,18353,30986,19057,44766,17703,18572,44674,44858,44878,44836,16935,5388,17756,19078,5993,17556,18237,18042,44687,30135,17771,45517,18688,44669,44775,17839,17092,24438,44837,44640,45042,18301,17114,9341,39676,30963,37267,44855,6609,17755,18900,28313,44745,45043,18430,17601,45229,44869,14402,44861,18286,44870,32454,24411,36472,18172,18652,45262,16885,17848,44868,45286,17009,44854)
Unknown column 'np.person' in 'where clause'