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,44868,18353,4765,17601,32454,18996,18719,18042,13922,45561,3883,17981,24411,36472,6782,18794,44689,44863,44867,44765,45229,14402,44674,45516,44873,18446,44866,45277,44854,44531,30963,44858,44745,44884,17335,17756,17092,17848,45518,18430,18652,44894,28313,18981,44739,44875,45515,17657,16885,45262,18185,44685,44837,44849,19078,6609,17839,22509,44855,30135,44764,17904,17278,37267,4686,13988,24441,28530,18648)
Unknown column 'np.person' in 'where clause'