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 (18981,44867,44878,18650,44764,22509,17527,16885,17703,37267,17278,44837,45051,17601,17556,13,17771,13988,28313,14622,17351,28530,5993,10402,18446,32454,18794,44767,37057,18279,18172,3883,17981,45262,44855,24411,6875,44848,45515,44894,44640,17657,5388,45229,45516,13922,44689,17835,5410,43800,18688,14402,45517,6609,44685,45561,44868,45286,45277,4765,44873,44836,18572,18237,4686,24412,30135,45421,18301,18648)
Unknown column 'np.person' in 'where clause'