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,44873,18286,17335,44640,44866,44764,45180,44685,17278,18185,13922,18237,44687,17755,17848,18688,45262,18430,30135,45177,5259,44854,44674,44845,44867,18042,45042,45516,3883,6862,17492,36472,6609,13,17601,3,44836,34194,45286,17839,44671,14402,14622,17092,32454,44837,17114,18279,44894,44855,18301,5993,22509,17703,44848,17657,44531,18794,18996,30963,16885,44765,45517,44865,44858,44745,18172,45561,18353)
Unknown column 'np.person' in 'where clause'