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 (44674,45177,30963,44767,44764,44861,44851,18353,44868,44531,17848,18172,44711,45421,5388,18279,44775,17335,5259,3,39676,45517,45180,18688,44685,6862,44835,8753,16935,44855,18981,44837,18301,13,19057,18894,18446,5993,30135,18286,17755,44745,14402,44866,28313,45516,44739,17009,17556,24412,44640,44869,44858,16885,17092,17601,13425,45277,43800,6782,17904,44671,4686,18042,17492,37267,45229,18996,22509,4765)
Unknown column 'np.person' in 'where clause'