Error in query: SELECT DISTINCT(np.person) AS person, p.first_name, p.last_name, nx.id AS news_id FROM news_person AS np, person AS p, news_category AS nc LEFT JOIN news AS nx ON nx.id = (SELECT ny.id FROM news AS ny, news_person AS nyp, news_category AS nyc WHERE ny.id = nyc.news AND nyc.category = 310 AND nyp.person = np.person AND nyc.news = ny.id AND nyp.news = ny.id AND ny.entry_active = 't' ORDER BY entry_date DESC LIMIT 0, 1) WHERE np.person = p.id AND nc.category = 310 AND nc.news = np.news AND np.person = p.id AND p.id IN (44867,10402,45043,44835,18650,39676,5388,5993,37267,44870,43800,17278,17771,44878,9341,17835,45286,4686,14402,44873,18794,45561,45072,13988,44836,44894,13425,16885,17657,45346,18237,45177,45516,3,28313,16935,17556,17839,22509,18446,44768,30963,8753,17904,17492,44865,37057,44689,45051,18652,18648,44685,45229,45262,45180,45518,13,17335,44858,44687,18719,5410,6862,19057,24412,44711,17703,44845,24411,18286)
Unknown column 'np.person' in 'where clause'