You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'to-bi-hong from table_photo where type='favicon'' at line 1syntax error: select thumb_dau-hieu-nhan-biet-bo-dieu-khien-o-to-bi-hong from table_photo where type='favicon'