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 (18301,45177,18652,28530,45561,17492,6875,18794,13922,45277,17755,5993,17556,44837,28313,18427,5259,44764,44848,44671,45042,44861,17771,44870,44739,18237,44856,24441,14622,44765,13988,44685,44775,37057,3883,44845,6862,45518,24411,45567,17904,45286,17835,5388,30963,24412,3,44836,8753,44875,18996,17703,37267,16935,44894,44867,30135,9341,44873,45517,17009,19078,22509,45229,44674,34194,44878,45051,43800,44531)
Unknown column 'np.person' in 'where clause'