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 (17092,18900,45286,5410,3,44848,44865,22509,18237,44768,45229,18719,44851,31354,6782,44845,16885,44836,44870,45042,37057,13922,13425,45051,44669,30986,18996,44764,17335,4765,17703,43800,17601,13,24411,45561,5259,18688,18172,5388,44875,18446,44873,44853,44868,44854,44878,18301,18572,9341,17756,6609,17657,16935,8753,44739,44835,45567,44674,3883,18981,44531,18650,19057,17839,17492,45262,18185,44866,45277)
Unknown column 'np.person' in 'where clause'