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 (44765,30986,44856,24412,18353,18427,6782,44865,17527,44531,18650,13988,31354,44866,44669,44870,45051,44745,44768,45043,3883,5388,44845,18301,44687,13425,5259,44837,45561,17335,6862,22509,18286,6609,13,24441,18996,9341,44875,18185,44775,44878,45516,45042,44855,44894,44848,17657,4686,45421,45517,44762,37057,44640,44767,18446,17756,4765,44711,44689,44861,18900,44863,17771,44836,43800,19057,44884,44853,17703)
Unknown column 'np.person' in 'where clause'