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 (3,44873,45177,19057,24438,30135,44768,4686,30986,18996,24412,17904,18650,44853,18900,44762,45043,36472,17009,13988,18286,17335,18237,17848,17527,28530,22509,44745,44855,10402,45515,45072,44863,45346,31354,17755,44531,44861,17556,17278,17835,18279,44689,17657,44739,18894,13425,3883,8753,44875,44865,24441,17771,5993,17092,18652,44685,45518,6862,45286,18794,44870,45561,18427,16935,44836,6609,45042,6782,45421)
Unknown column 'np.person' in 'where clause'