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 (43800,6782,44855,18894,45042,14622,45051,4686,13922,5993,17839,34194,18446,24441,17755,44767,18185,44768,45561,44762,14402,22509,17657,44739,45286,18650,6609,19057,44853,44837,6875,16885,28530,18427,44845,17527,30135,44884,18286,45262,18794,45516,30963,17009,44875,44870,44711,44854,36472,45517,17556,44867,30986,44674,31354,24411,18572,45043,44865,45567,17771,44775,18237,44669,44531,44894,17703,17756,13,45180)
Unknown column 'np.person' in 'where clause'