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 (18446,44884,17351,6875,44845,16935,18172,45277,18430,44739,3,17527,43800,17335,45286,45518,17848,19078,45043,18237,16885,45567,44531,30135,17601,44851,19057,18301,13,14402,45262,45561,24412,17981,45515,37057,44775,44766,4765,44768,5259,45042,44685,17657,34194,14622,18996,45346,44863,17703,13425,44855,18648,24411,44849,44861,22509,24441,44853,18286,44674,17835,18719,44837,3883,45072,44689,17114,44640,10402)
Unknown column 'np.person' in 'where clause'