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 (6609,17009,45561,17556,30963,18900,44775,17657,44689,17835,44869,44870,8753,6875,37267,17351,18353,17755,18650,44835,44837,18185,18279,45042,44768,28313,44669,16935,10402,44853,6782,14622,44765,45421,44674,18286,44767,44845,44867,44856,17492,45072,44854,45262,24412,30135,44711,3,44739,18572,14402,36472,18794,17848,44531,13988,45286,19078,6862,19057,37057,44745,44687,5410,45346,44878,45567,39676,44873,18981)
Unknown column 'np.person' in 'where clause'