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 (45051,30135,18648,18430,17527,45286,18185,4765,36472,37057,44689,18894,44745,24411,44858,31354,44762,45262,17351,6862,45180,18794,44855,17839,17601,45515,45517,6875,45516,17556,44836,18719,43800,44878,5388,45561,44671,18572,22509,30986,18996,30963,9341,19078,44868,5410,44531,44837,44851,24441,6782,19057,34194,44875,44856,17703,3883,37267,44640,44866,44674,14402,17771,18652,45177,44873,44764,44869,45043,45567)
Unknown column 'np.person' in 'where clause'