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 (5410,18042,45517,6862,44711,17904,4686,37267,44835,3883,18648,18237,45277,14622,44873,44867,44856,18301,24411,16935,44861,6609,18286,45567,45518,44868,18688,28530,45072,17278,44765,44669,44878,5388,45262,44855,4765,36472,17756,17771,45042,18719,32454,44836,31354,17492,28313,44745,45043,18279,45561,44884,44640,44764,44674,17556,44689,17527,44848,18446,30986,44845,44863,18185,45229,44869,8753,6875,13922,43800)
Unknown column 'np.person' in 'where clause'