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 (45286,44531,19057,30963,3883,44766,44894,45042,17556,6875,18446,17335,36472,44855,17703,8753,16935,44870,28313,18172,43800,44837,45072,18650,45515,17114,44689,4686,44767,44768,18301,24441,30135,19078,44687,18996,24438,44884,44835,17839,44873,22509,44745,17092,45517,5388,18042,17278,45277,44869,44848,17848,44868,5410,17601,44865,16885,18185,45567,3,34194,13988,45043,44669,17835,18286,13,37057,17657,18652)
Unknown column 'np.person' in 'where clause'