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 (17237,44739,17335,45517,18650,10402,18430,44873,18042,44766,44669,16935,44768,43800,44869,28530,5993,44861,44856,6875,37267,17981,44836,17278,44867,13425,44870,14622,5259,44674,44640,22509,18237,44865,17904,44855,17114,18185,44835,24411,45286,44671,44837,44689,18172,18301,4765,44851,44868,45277,36472,17848,24438,34194,32454,17556,5410,18572,5388,18427,17703,44848,44762,30963,18894,17009,17756,18279,17755,45346)
Unknown column 'np.person' in 'where clause'