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 (16885,30963,44835,44856,18572,13988,44767,45517,5410,44711,13,45051,37057,39676,44775,17114,18981,45177,18719,44685,44845,17601,17092,44854,28530,5388,18688,18353,17237,9341,32454,17755,44849,17351,17771,44739,18900,18996,5993,17009,44671,17848,45180,30135,44861,18794,45518,45561,17835,44837,44768,44765,44764,44689,18894,36472,17657,6862,6609,18237,44868,44894,44669,45229,17278,44531,17839,17492,18042,17703)
Unknown column 'np.person' in 'where clause'