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 (6862,45286,13,3,44689,45072,18572,18648,18172,44861,8753,45515,18894,17492,45518,44767,14402,44863,44867,44848,44640,43800,44674,6875,44870,13425,18042,19078,18286,45043,18981,5259,9341,17771,24411,17657,32454,24441,30963,44671,5410,16935,44858,45051,44739,44687,44711,44765,44865,17278,44775,28313,44855,44845,17756,45042,45517,45561,17703,45421,13988,14622,44878,37057,44531,19057,17981,6609,17092,39676)
Unknown column 'np.person' in 'where clause'