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 (45561,17839,28530,18042,44866,5388,18719,44669,17601,5410,44861,44836,17335,30963,44837,17492,17756,37057,17527,45286,45262,44873,45567,19057,44685,18301,44856,17835,44767,17009,31354,44640,17092,18996,45072,17703,45051,16935,17556,18279,44849,44762,6609,44845,30986,17237,45518,18900,19078,45346,44848,44765,44878,3883,14402,45042,24412,18427,44671,17351,44858,4686,44875,44863,45515,44739,16885,17771,18981,44768)
Unknown column 'np.person' in 'where clause'