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 (18237,45051,16935,45561,4765,44767,45286,5388,3,45177,9341,44866,28530,17351,45043,44849,14402,44848,44873,17492,36472,13922,19057,45518,17904,18427,18446,18279,45042,45180,17556,24411,43800,18652,17092,44867,18286,19078,4686,44711,30963,44855,45567,45277,18981,45229,44856,22509,6862,44894,17278,44863,44687,44689,5410,34194,18894,44875,37267,3883,24412,17756,44674,18719,17601,44865,44640,45515,44870,39676)
Unknown column 'np.person' in 'where clause'