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 (45515,44851,10402,44870,18688,44837,44856,43800,34194,18237,44687,44861,45516,44669,18286,45421,31354,44868,8753,17848,45286,17527,19057,44689,44863,18185,44836,32454,44849,6609,45346,5410,4686,24411,6862,44858,17556,18427,13988,45072,5993,18572,4765,14622,44848,28530,44671,17839,18430,18794,44766,44685,18996,16885,17657,18652,44873,17492,45561,18981,5388,22509,44765,3,44531,37057,17237,28313,45517,18353)
Unknown column 'np.person' in 'where clause'