A PHP Error was encountered

Severity: Warning

Message: mysqli::query(): (21000/1242): Subquery returns more than 1 row

Filename: mysqli/mysqli_driver.php

Line Number: 221

Backtrace:

File: /home/jdihwsb/public_html/application/models/Peraturan_model.php
Line: 24
Function: get

File: /home/jdihwsb/public_html/application/controllers/Peraturan.php
Line: 1111
Function: details_peraturan

File: /home/jdihwsb/public_html/index.php
Line: 292
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /home/jdihwsb/public_html/system/core/Exceptions.php:272)

Filename: core/Common.php

Line Number: 569

Backtrace:

File: /home/jdihwsb/public_html/application/models/Peraturan_model.php
Line: 24
Function: get

File: /home/jdihwsb/public_html/application/controllers/Peraturan.php
Line: 1111
Function: details_peraturan

File: /home/jdihwsb/public_html/index.php
Line: 292
Function: require_once

Database Error

A Database Error Occurred

Error Number: 1242

Subquery returns more than 1 row

SELECT *, (select attachment.file_name from attachment where attachment.id_tabel=peraturan.id_peraturan and attachment.table_name='peraturan' and attachment.keterangan='Isi Peraturan') as attachment_isi_peraturan, (select attachment.file_name from attachment where attachment.id_tabel=peraturan.id_peraturan and attachment.table_name='peraturan' and attachment.keterangan='Katalog') as attachment_katalog, (select attachment.file_name from attachment where attachment.id_tabel=peraturan.id_peraturan and attachment.table_name='peraturan' and attachment.keterangan='Abstrak') as attachment_abstrak, (select attachment.file_name from attachment where attachment.id_tabel=peraturan.id_peraturan and attachment.table_name='peraturan' and attachment.keterangan='NA') as attachment_na, (select attachment.file_name from attachment where attachment.id_tabel=peraturan.id_peraturan and attachment.table_name='peraturan' and attachment.keterangan='MOU') as attachment_mou, (select attachment.file_name from attachment where attachment.id_tabel=peraturan.id_peraturan and attachment.table_name='peraturan' and attachment.keterangan='Cover E-book') as attachment_cover_e_book FROM `peraturan` WHERE `peraturan`.`id_peraturan` = '242'

Filename: models/Peraturan_model.php

Line Number: 24