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 (13922,44837,8753,45286,18172,18279,4686,18650,44865,6609,45180,9341,45262,44851,18981,44531,45051,14402,30986,17556,45567,18353,17092,44894,17492,17703,18042,44766,16935,45043,17981,44671,45517,45072,44687,24441,44767,18996,44836,30963,44669,45516,44854,37267,17351,37057,45042,44685,17009,17848,31354,44884,18286,44775,44674,17657,19078,14622,44873,44739,44745,5259,17237,16885,45177,43800,17839,45561,13425,17755)
Unknown column 'np.person' in 'where clause'