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 (18572,24438,44851,37267,3,4765,37057,8753,30986,44640,44853,18652,18286,5259,18996,13,45180,32454,18894,5410,44836,44768,19057,17114,44669,45516,45177,44671,44866,4686,10402,24441,17009,44674,17335,44837,13988,5993,17771,44762,44854,16935,14402,17556,44868,18446,17839,45042,44767,44845,44875,45043,17848,44687,44865,44685,45277,9341,45517,17703,17092,43800,17657,44739,44878,45518,44531,24411,44884,44765)
Unknown column 'np.person' in 'where clause'