Error in query: SELECT DISTINCT(np.person) AS person, p.first_name, p.last_name, AS news_id FROM news_person AS np, person AS p, news_category AS nc LEFT JOIN news AS nx ON = (SELECT FROM news AS ny, news_person AS nyp, news_category AS nyc WHERE = AND nyc.category = 310 AND nyp.person = np.person AND = AND = AND ny.entry_active = 't' ORDER BY entry_date DESC LIMIT 0, 1) WHERE np.person = AND nc.category = 310 AND = AND np.person = AND 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'