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 (44835,17492,44858,44837,45051,44768,32454,18446,31354,44863,45277,17835,44674,17092,30135,45262,44856,44878,44848,18688,17601,44531,3,30963,18900,44765,17981,5410,44669,45518,44866,44867,44861,16935,44855,3883,44873,18237,37057,14622,19057,44685,44884,45286,17848,13922,45042,17556,44671,44869,17278,44687,24411,17237,6862,16885,44764,44868,18894,44854,45072,18572,18353,34194,44767,43800,45517,13425,45177,18648)
Unknown column 'np.person' in 'where clause'