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 (44687,45043,45421,44768,6782,18794,44775,45567,44767,44837,14622,44873,4765,17771,18650,17981,13922,44866,32454,39676,17114,17756,45561,45177,17601,18237,44766,44845,45072,44739,5259,44867,18185,44854,24438,18172,44849,44853,5388,6609,16885,31354,44689,5993,18301,28313,22509,16935,45277,44745,17237,18652,3,19057,45516,13425,17839,44851,18648,24411,4686,36472,19078,37057,9341,44836,44855,17657,44848,44674)
Unknown column 'np.person' in 'where clause'