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 (24412,45180,18572,44866,19078,44861,22509,18237,34194,45229,44863,44858,45262,18353,45346,44853,18042,44854,18430,17835,18172,45421,45515,28313,44685,44894,44765,28530,4765,18648,37057,13425,18794,18981,4686,3,44836,18446,44767,30986,44669,17657,24411,44775,17114,44855,37267,18286,44865,6875,44837,44531,32454,30963,17237,17351,17771,18301,17601,44849,45561,44869,18996,44867,44689,44674,44640,45567,44711,5410)
Unknown column 'np.person' in 'where clause'