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 (18286,17351,45518,17278,45567,45515,4765,17009,44836,37057,44674,45043,45042,18279,24411,44762,44863,43800,44845,6609,44669,13922,4686,45561,45177,17756,44640,32454,3883,28313,44873,18688,18650,17904,34194,44853,18427,6875,44689,3,44855,13,10402,45516,28530,44894,22509,45286,18237,18648,17839,44848,44870,44867,45421,17492,17657,18301,44837,16935,24412,45072,18446,17848,18572,18719,30963,39676,17556,18794)
Unknown column 'np.person' in 'where clause'