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 (34194,36472,44863,17092,13,18981,44685,16935,44867,17009,31354,18185,30963,5410,44739,17278,45567,17601,44873,44762,17981,17904,4765,13988,44875,16885,18648,44854,18688,44869,45561,19078,44768,44878,44765,44865,6875,18652,18650,18430,17756,18286,44745,45229,37057,45515,17527,39676,44775,45277,30986,18279,45180,6609,44767,17703,6862,24411,3,17114,5388,17237,45518,28530,13922,17839,32454,3883,45043,45517)
Unknown column 'np.person' in 'where clause'