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 (28530,18301,18430,17527,30963,44764,17009,17755,44845,44669,44848,32454,45177,17556,18172,18900,18688,44875,9341,18286,18794,36472,3,44674,17904,18572,24411,37057,30135,44762,45262,44671,31354,6862,45180,45518,16885,45517,17335,45229,17839,37267,44768,18648,34194,17703,44689,44767,18996,18650,5410,3883,44863,18894,18446,24412,44884,17756,17848,13,6875,44851,44766,17657,44836,14622,17278,17981,13425,4765)
Unknown column 'np.person' in 'where clause'