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 (17556,18042,22509,44866,13425,5410,17904,44884,44855,44873,17657,45042,3,44674,17114,44640,6875,36472,44669,45051,18981,45043,44845,44856,44858,44762,30963,13922,18353,44854,43800,18237,28313,44531,24438,45286,44739,13988,34194,30135,45517,5993,6609,18688,24412,45515,44775,17601,44768,45262,44868,18301,44689,17527,17756,17492,17009,18996,16885,13,17278,44869,45561,32454,18652,4765,18794,37057,17351,18719)
Unknown column 'np.person' in 'where clause'