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 (30986,3883,44855,44894,30135,39676,44858,44845,44739,44873,24412,44765,18900,37057,17278,44854,44861,18981,44768,4686,18042,19078,28313,24411,30963,45516,17703,8753,45043,28530,44856,18648,45346,34194,5410,17771,13425,45277,17848,45072,13,45286,44674,18894,13922,17237,44775,18996,44531,44745,3,16935,17755,24438,17601,44836,14622,18185,18572,44867,18427,17756,5993,45051,44866,44687,45180,19057,44689,44853)
Unknown column 'np.person' in 'where clause'