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 (44863,24438,44875,5993,44855,45051,44845,18650,44671,17981,17756,3883,45517,45072,30986,44853,45561,17839,44848,18301,44762,44531,18794,18185,17351,24412,44640,18042,18996,5410,45177,44858,44669,30135,44687,36472,44884,6609,44851,10402,17009,18353,44711,17657,44873,44766,32454,17601,6782,6875,17771,17114,17492,44765,45515,45262,44835,39676,13988,17755,44869,37267,9341,13425,37057,44865,24441,13922,5388,30963)
Unknown column 'np.person' in 'where clause'