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 (17351,44884,44711,34194,5388,17904,43800,44745,45180,45286,44863,44873,44671,17848,14622,45567,18650,18279,44866,4765,30986,24441,39676,18900,18572,44849,5993,16885,18894,3883,44762,45515,24411,18301,44836,18185,17601,18981,44875,44669,18688,30135,9341,36472,44739,24438,16935,28313,17009,44837,44854,44855,17092,17278,8753,18996,30963,13425,44766,5410,4686,44640,45277,31354,44765,44878,6782,17114,45518,6875)
Unknown column 'np.person' in 'where clause'