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 (18430,6875,18446,44837,45051,18894,28313,44858,6782,13922,44687,24438,19057,10402,18648,45180,13988,44853,45518,44894,30986,18652,4765,22509,44878,44685,18427,17981,45042,18996,18286,44873,44849,45421,24411,14622,45277,14402,44764,18172,44848,17009,18794,18042,44861,45561,6609,28530,17092,44836,5410,18981,45229,44745,6862,5259,17848,17278,45072,34194,44835,44531,44866,16935,44739,5388,17335,45517,17601,18279)
Unknown column 'np.person' in 'where clause'