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 (30986,44858,43800,45567,17601,44865,18688,39676,17904,17556,17657,17335,18794,44765,18719,18185,22509,5993,14402,44854,17527,45516,37267,44884,44868,45561,3,45180,44849,17703,44851,30135,44775,44861,24411,17771,6875,44739,13,30963,44894,44873,17848,19057,10402,24441,13425,17981,17092,18446,18996,24412,44762,44711,32454,17351,18900,16885,3883,37057,44870,17237,17839,17492,44875,45042,44669,5410,44866,4686)
Unknown column 'np.person' in 'where clause'