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 (45516,17492,4686,45262,17981,8753,18794,9341,44858,44884,44873,5259,18719,44687,44685,44867,17657,44855,45515,17771,4765,32454,14622,18430,5410,44764,44768,18237,18446,44875,17114,45346,44865,13922,17839,44674,19078,36472,30963,3883,18688,44711,45042,14402,44835,17237,18996,45180,44848,18427,13425,31354,45518,18981,17556,17009,44849,39676,45277,24438,44856,17527,24441,44640,37057,17756,45561,28313,44745,44765)
Unknown column 'np.person' in 'where clause'