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 (45567,44848,30963,17114,44866,18894,45421,32454,18650,45561,18446,17556,16935,18172,44711,44851,30135,17009,19057,4765,17527,18652,44867,8753,44689,5259,6782,37267,6875,44765,18996,44671,39676,24412,44764,18353,18648,13988,24441,45043,44835,24438,44775,45051,44865,17904,17771,44849,18430,17351,3883,30986,5410,37057,44766,16885,44640,45518,44869,45180,44875,17657,18427,17848,31354,28313,44669,13922,44745,44873)
Unknown column 'np.person' in 'where clause'