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 (24438,44894,18446,44863,44775,28313,18042,13988,45072,44762,17351,6782,5993,17756,44884,44764,44851,17278,30963,31354,44687,3883,17848,44837,17835,14622,44858,8753,45051,30986,22509,44853,18279,18648,36472,17703,44685,17657,44869,17601,17904,4686,34194,44848,45286,45561,44845,44531,24411,45517,19057,44767,45229,44878,6875,44765,17492,44856,45180,39676,44766,18894,44835,10402,18996,18900,18237,44669,44711,45043)
Unknown column 'np.person' in 'where clause'