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 (45561,17092,6609,17335,24441,8753,17755,18719,5410,19078,45051,13425,19057,17351,44856,45567,45517,24412,44875,17981,44640,43800,44768,6782,45043,44849,44878,44854,44865,44867,18237,45262,44868,44739,44894,44671,44767,45518,45515,17278,44851,5259,45421,44848,45072,44866,18572,44836,44745,3,18981,44711,44884,24438,32454,44689,18648,16935,44858,13,44685,30963,17657,44837,24411,30135,44674,44855,9341,17703)
Unknown column 'np.person' in 'where clause'