A PHP Error was encountered

Severity: Warning

Message: A non-numeric value encountered

Filename: models/Contents_m.php

Line Number: 236

Backtrace:

File: /var/www/vhosts/juzpai.com/httpdocs/application/models/Contents_m.php
Line: 236
Function: _error_handler

File: /var/www/vhosts/juzpai.com/httpdocs/application/controllers/Tag.php
Line: 42
Function: getListContentsByTag

File: /var/www/vhosts/juzpai.com/httpdocs/index.php
Line: 316
Function: require_once

Database Error

A Database Error Occurred

Error Number: 1064

You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '-10, 10' at line 8

SELECT `content`.*, `category`.`name_th` as `category_th` FROM `content` LEFT JOIN `category` ON `category`.`id` = `content`.`category_id` WHERE `content`.`status` = 1 AND `content`.`keywords` LIKE '%ข่าวบัตรเครดิต%' ESCAPE '!' OR `content`.`title` LIKE '%ข่าวบัตรเครดิต%' ESCAPE '!' ORDER BY `content`.`id` DESC LIMIT -10, 10

Filename: models/Contents_m.php

Line Number: 252