A PHP Error was encountered

Severity: Warning

Message: Missing argument 1 for Product::detail()

Filename: controllers/Product.php

Line Number: 67

Backtrace:

File: /home/bae/app/application/controllers/Product.php
Line: 67
Function: _error_handler

File: /home/bae/app/index.php
Line: 293
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: cid

Filename: controllers/Product.php

Line Number: 68

Backtrace:

File: /home/bae/app/application/controllers/Product.php
Line: 68
Function: _error_handler

File: /home/bae/app/index.php
Line: 293
Function: require_once

:Database Error

Error Number: 1064

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 'WHERE `id` IS NULL' at line 2

SELECT * WHERE `id` IS NULL

Filename: libraries/Api.php

Line Number: 327