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 (45516,10402,45262,45042,18427,44865,44687,18353,17527,44775,44858,18652,19078,45051,44739,44640,18286,44669,45515,28530,44765,18279,18650,30135,44851,44689,17009,44884,18996,44855,18430,4765,18446,14622,18172,44835,45561,45072,44745,44853,43800,17335,18042,16935,31354,45043,6862,44861,44836,17556,17657,44873,17703,45346,5388,44711,17756,18572,18794,17492,8753,22509,18301,5410,44845,44868,14402,17755,18900,44685)
Unknown column 'np.person' in 'where clause'