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 (44766,24412,13425,44669,17839,18301,37057,45051,44689,17335,17527,45515,4765,44674,18894,44861,44836,45561,17492,44767,44711,18900,18279,18572,44640,17657,44855,44837,28530,6609,18794,18996,30963,44875,44764,18185,17601,44866,17092,30986,5993,6862,44745,16885,6782,17351,30135,44867,3883,43800,18353,45517,17114,22509,8753,13,44849,39676,14402,17237,5259,3,44848,18652,18430,17009,44873,44863,31354,28313)
Unknown column 'np.person' in 'where clause'