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 (36472,17848,22509,45042,18286,3,18996,6609,24412,17839,18301,19057,6862,17703,44867,13,45177,17657,6875,9341,44863,4686,45421,17009,45277,28313,45515,44765,44894,44854,18572,44689,44869,44739,44768,45180,44674,30963,45051,18900,45043,45072,18650,44687,45516,24441,37057,44878,4765,44873,17527,18172,44856,6782,45262,17237,44884,45561,5410,13425,17756,44865,44640,16885,5259,17492,44764,44861,17114,44870)
Unknown column 'np.person' in 'where clause'