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 (13425,18650,44768,18652,17904,44863,44711,18286,6609,24411,17527,45567,18894,18279,30986,18688,5388,44884,28313,34194,18572,45043,17755,18900,44835,28530,18237,44848,8753,44762,17981,45561,44867,16885,37057,44765,22509,44854,44878,18794,44851,45517,39676,44689,45042,10402,17092,6875,17601,30963,24441,5410,45518,17703,45286,44687,44745,44767,44775,44766,19057,44837,45262,18042,19078,44845,18430,24412,18353,17009)
Unknown column 'np.person' in 'where clause'