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 (44854,24412,44674,17009,17771,14622,17492,44765,44878,13,17601,44869,10402,44711,17114,4686,44837,44775,44745,13988,28313,45421,44669,18900,16935,18996,45180,44855,18301,3883,39676,44685,45277,44836,45517,45561,44762,22509,17657,44845,17756,17278,18185,44863,44689,31354,44873,17556,17335,17527,18572,18427,44853,44858,6782,45516,45515,24441,6862,44739,6609,44768,44531,17351,44875,5259,32454,5410,24438,43800)
Unknown column 'np.person' in 'where clause'