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 (44674,44878,44766,18688,44845,44765,44849,45286,32454,44671,6875,44854,17981,17351,4686,18042,13988,44768,44835,5993,34194,36472,18430,17904,16935,45515,18279,14622,45421,44689,13922,44669,24412,44848,44767,44531,44837,44865,44739,31354,44856,44858,44875,45042,18301,44775,24411,17848,17092,6782,44855,18572,44762,18981,24441,17492,44873,37267,18900,44764,44745,17601,13,45517,44870,6609,45346,3883,5388,5259)
Unknown column 'np.person' in 'where clause'