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,24412,44669,18572,14622,44775,17904,18286,44745,17556,8753,44764,44835,44867,44873,9341,19078,30135,18446,45421,44711,16935,45051,18172,44884,37057,17092,18996,30986,18237,5259,45517,17981,44689,45043,18981,18430,10402,44762,45180,5993,18652,45567,44836,4686,18648,44766,18042,44671,44869,44845,44687,13,44865,17839,28530,45262,44894,17657,44853,44640,18719,45042,22509,5388,44848,17601,19057,32454,44767)
Unknown column 'np.person' in 'where clause'