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 (5388,18042,19078,17756,17527,45180,31354,30986,4686,3,18301,44867,5993,44836,17601,17237,6875,45421,44873,24412,37057,44855,43800,18648,3883,45567,18286,17904,18172,44866,44762,44711,44764,18794,24441,44671,17839,44669,24438,44878,13425,13,44848,45072,17114,17556,18981,16935,14622,44775,44687,13922,45518,44870,6862,44849,45346,14402,44853,8753,17771,17492,44858,6782,44765,28313,44835,44854,17657,44863)
Unknown column 'np.person' in 'where clause'