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 (45277,19057,18185,5259,13922,6782,4686,44853,44873,13,18446,6875,17756,45421,24412,44836,30986,37057,18286,44764,8753,5388,17492,44868,18688,44689,44762,44870,16885,17527,31354,45286,44848,44768,43800,17237,24411,24438,45516,44765,44674,44711,44855,45346,44854,18996,14622,28530,30963,44767,44863,17092,44745,44858,44851,32454,17839,17278,45180,36472,45072,44531,14402,24441,45567,18794,18301,45518,3883,44878)
Unknown column 'np.person' in 'where clause'