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 (6782,18301,30963,44870,6862,44854,14622,44531,17601,31354,30135,24441,44671,5388,45516,44766,44765,44865,44894,45262,24412,18427,44775,17114,18652,28530,43800,28313,13425,17657,45518,4686,44858,44845,3883,18719,17009,44836,17904,18648,44869,13988,45346,17835,14402,44711,44848,18042,18279,18185,24411,3,44835,44861,6609,44767,44640,45051,36472,17848,22509,18237,16935,45042,19078,44867,37267,16885,44739,45229)
Unknown column 'np.person' in 'where clause'