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 (18427,44685,45516,45421,10402,14622,17335,3,13988,44745,44855,5259,18794,18719,24412,45042,13425,30135,45346,14402,13,31354,44866,34194,17492,44851,17278,45561,24411,36472,17835,18446,44849,18981,18996,22509,17601,45518,18172,44873,44845,6609,43800,19078,17981,18900,44884,13922,18353,32454,45515,30963,44848,45567,45051,18279,4686,16885,18042,44835,30986,16935,44870,18648,45517,44687,17771,44768,44858,44836)
Unknown column 'np.person' in 'where clause'