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 (44766,17351,44884,6875,44767,30135,18427,45072,44866,45561,45421,18353,44870,8753,45043,6862,44689,45180,44739,44765,17601,18650,44848,13,28313,18900,44853,17981,24411,17703,44855,45517,17657,34194,17771,44835,37267,18237,17492,18648,44875,31354,44836,17335,18286,9341,44858,44845,18572,18185,44669,16935,17278,44768,6782,13922,45262,4686,44851,17556,14402,45042,44687,17527,6609,5388,24438,18894,44640,18042)
Unknown column 'np.person' in 'where clause'