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 (43800,30963,28313,45561,44855,44836,18427,6875,45177,18353,45072,44866,44849,44867,18279,17092,44861,45286,44854,44894,44863,9341,18900,17981,18996,18172,44851,32454,5388,44739,10402,18446,5410,44765,18981,44868,44870,44848,18648,13988,45051,17771,44640,45277,24412,16935,44873,17756,4686,44865,17657,4765,31354,44669,17492,5259,37057,17601,17278,45180,18652,44875,17835,18286,28530,17527,24438,44689,45262,16885)
Unknown column 'np.person' in 'where clause'