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 (44835,17092,10402,44884,18688,18652,18172,17756,24411,45072,17335,45262,45277,43800,17839,18794,18279,45518,4765,17657,44845,44711,30963,44685,18237,24438,44869,44674,45346,18648,44745,28313,24441,13,17601,22509,44775,37057,4686,17114,44531,44767,39676,19057,44640,45561,5259,17981,17527,5388,44689,18430,18427,16885,17848,32454,45516,44865,44873,36472,44762,37267,44894,45286,6862,45515,18301,44861,13425,8753)
Unknown column 'np.person' in 'where clause'