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 (44745,19078,18652,17278,45177,17755,45043,44848,45277,45516,30135,36472,18427,44878,10402,18185,44765,45518,43800,30986,45561,18172,44865,24412,24438,18572,16935,28530,18996,18688,44674,44845,32454,44711,17771,44768,13988,45567,18286,6875,44869,45051,44766,6782,37057,44767,18430,44849,17703,24441,44894,24411,18894,45180,44868,17601,17657,44837,18446,5993,44855,17009,45346,44764,44531,31354,18042,8753,18900,4686)
Unknown column 'np.person' in 'where clause'