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 (44762,45286,4686,18279,44894,22509,18430,4765,44674,44856,44711,18185,18981,16885,44849,17981,18301,44764,8753,17009,45561,39676,17657,17839,44873,44853,5410,17092,44845,44868,14402,45277,19057,44775,43800,44531,18652,18688,16935,6862,17755,44687,44848,18794,37267,44858,17556,17492,45518,45567,18572,44671,17114,44768,18648,45072,30986,24411,44689,18650,45516,45346,45051,5259,44855,6609,28313,44745,45262,37057)
Unknown column 'np.person' in 'where clause'