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 (44640,24412,44767,44745,9341,17835,17601,44835,28530,3883,45229,13922,44848,18794,44878,18353,39676,17009,44853,44845,22509,13425,5259,44836,6862,14402,8753,32454,30986,17981,18981,17848,16885,44531,24411,18894,44766,18301,6875,44894,45286,45567,18430,17771,5388,37057,18237,45043,28313,18996,45051,17335,17556,45518,6609,18652,44865,44837,44671,44875,44873,18688,44858,13988,24441,17756,45042,18427,44884,44762)
Unknown column 'np.person' in 'where clause'