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 (13922,44836,45042,18042,28313,4686,45567,44856,44689,16935,18652,44640,45072,44711,44845,17556,6609,3883,17703,44894,44865,18719,14622,17601,45421,19078,24411,37057,22509,45043,30986,44861,17237,18572,6875,18301,44745,31354,44766,36472,45286,45051,18648,44848,43800,3,13988,45277,30135,44875,17657,10402,44863,44870,5410,17492,4765,44669,18996,18794,6862,44765,44837,17278,17848,44762,9341,34194,44855,17771)
Unknown column 'np.person' in 'where clause'