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 (31354,17237,6609,17092,45043,44685,44848,17601,44858,19078,44745,18996,17839,44711,44689,44875,45517,44894,44851,44856,45180,44884,18279,18688,28530,13,5388,30135,17657,36472,28313,44855,45286,44762,44835,16885,44867,22509,45262,4686,17351,18237,18648,17835,18719,17556,44866,13425,37267,18650,5259,44768,43800,18981,44863,30963,18652,24412,44669,44836,45518,44865,45515,45277,44766,18286,44861,9341,44868,3883)
Unknown column 'np.person' in 'where clause'