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 (18446,45346,28530,13922,45051,45043,24438,44875,17904,4765,44858,44745,36472,44863,37267,30963,17839,18427,18894,44531,44848,18185,17492,18981,45518,45561,18286,43800,3883,18650,44869,30135,18042,18688,28313,17527,5410,6875,39676,44669,44739,17278,17351,16885,9341,6609,17835,44884,18648,14622,18279,17009,17092,45180,17657,44861,17601,17981,45567,6782,45286,13425,18900,17335,44845,10402,5388,44671,18652,44640)
Unknown column 'np.person' in 'where clause'