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 (44849,14402,14622,24441,44767,17351,13922,17237,17601,37057,6862,5259,17556,6782,18430,4686,17839,30135,44873,45561,44875,45043,31354,18648,16885,44775,44845,44640,5410,44868,13988,44835,32454,44848,37267,44856,18286,30986,44764,44762,44687,18794,18572,44711,18042,17848,3,44855,45515,5388,17114,18185,18301,45518,17492,24411,24412,44766,18688,8753,18719,43800,39676,44867,44836,44765,17009,18427,19078,45286)
Unknown column 'np.person' in 'where clause'