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 (44855,45262,44849,18652,44845,6782,44853,17703,17601,44739,45072,18894,13,44868,44689,44851,17835,44875,45518,18172,18572,16935,17556,45561,17771,18185,5993,24412,44865,18794,34194,17756,31354,13425,44856,44767,17114,8753,18301,6609,18042,18650,17009,44884,44837,17981,44848,14622,18996,44836,39676,18446,3,13988,10402,37057,18900,44671,45567,16885,6875,44863,5410,44775,28313,17527,44745,6862,45229,45286)
Unknown column 'np.person' in 'where clause'