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 (17904,44766,18353,18652,44869,37267,44853,18900,13988,44865,13,44767,37057,17492,44711,39676,10402,28313,6782,45517,44845,9341,18650,44854,44878,45177,18301,45421,44863,44768,18996,44739,17335,14402,45561,18172,44856,18237,16885,44861,44868,16935,17756,18572,44836,18981,18688,44689,17835,43800,17009,17601,44687,30963,45518,4765,45515,44775,13922,45043,44851,44674,19078,31354,18446,14622,5259,18279,44875,17848)
Unknown column 'np.person' in 'where clause'