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 (4686,18719,44765,22509,44837,44861,44848,18572,17237,45180,24438,17657,14402,44878,5410,17771,44855,30135,43800,44768,17848,45043,17556,37267,18172,17904,45518,45517,44687,44836,44875,45561,44739,19057,45277,24411,44866,18286,18894,44865,45286,6862,13425,44745,18301,13922,44531,44869,18650,18042,13988,24441,44849,18446,44858,45262,28530,44870,44674,44894,9341,44764,17703,18237,17335,45042,17835,5259,44669,3)
Unknown column 'np.person' in 'where clause'