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 (18648,13922,45051,3,17278,45229,37057,18572,45277,28313,44894,44858,44669,6862,45177,6609,44865,18981,30963,44866,18172,17335,16885,44870,44873,6875,14622,44689,31354,18688,4765,44848,44849,17237,17092,45180,19078,5388,44853,44768,18301,17848,17703,17556,44835,9341,17755,45286,34194,5410,39676,13,24411,44640,45518,13988,19057,43800,14402,6782,44884,44878,18353,17835,18185,44855,45516,13425,5259,37267)
Unknown column 'np.person' in 'where clause'