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 (14402,44768,17703,44836,39676,14622,18981,18996,44849,4765,18279,6862,17009,22509,44775,24438,17092,44767,44739,34194,6782,44689,17527,30986,36472,19057,18688,44640,45072,44863,44837,17657,9341,45567,37057,44765,18446,43800,18719,6609,17839,44766,18172,44873,24441,18650,17278,44867,30135,44856,17755,13922,17351,18572,18286,32454,44848,44851,44855,18353,45516,44853,18900,45515,31354,17601,16885,6875,45262,17771)
Unknown column 'np.person' in 'where clause'