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 (45286,45277,18996,17278,18237,17703,34194,18650,18572,45567,17848,24411,44865,14402,17771,45043,44848,16935,44687,17492,37267,32454,43800,45518,17601,44711,18900,6862,9341,44674,45229,45346,45042,44884,5993,45051,18286,18688,45561,17755,44873,18719,31354,44689,18430,44853,30986,18652,10402,44767,6875,18353,18172,4765,5259,18185,44531,18794,44858,17351,44863,44856,44878,22509,44766,19057,30135,44870,4686,3883)
Unknown column 'np.person' in 'where clause'