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 (44878,14402,44875,5388,16885,32454,44687,5259,16935,4765,45567,6862,44845,44848,44531,45229,44836,5993,36472,30135,6609,44835,43800,17601,44767,45515,13425,44869,17835,45561,17237,19057,45516,44855,17839,18446,18688,18042,18301,44764,18185,17556,18286,45051,18981,44765,45180,17657,3,44854,24441,18279,24438,18719,45277,44865,44669,45286,37267,44867,18894,5410,3883,44861,6875,24411,18572,13,17335,45072)
Unknown column 'np.person' in 'where clause'