MySqlIException
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 'and issue.start_date < 1338015342
order by
art.id desc limit 0, 5' at line 10
select
art.id, art.title_en, art.handle_en,
art.content_en
from
tbl_articles art
inner join tbl_magazine_issues issue on art.issue = issue.id
where
art.id != 0
and art.category =
and issue.start_date < 1338015342
order by
art.id desc limit 0, 5
Article->Display('/en/news-and-events/%s/', '', '1')
File: /sites/sapteseri.ro/Classes/WebPages/NewsWebPage.php, Line: 78
<?php
73. }
74. $str .= '
75. <div class="container w675 h1 lh1"><img src="/Images/spacer.gif" width="675" height="1" alt=""/></div>
76. </div>';
77. } else {
78. $str .= $this->Article->Display($this->SetPage($this->Handle, array("wparam" => "%s")), false, true);
79.
80.// // Display Author Ad
81.// $file = "Assets/Ads/Articles/Authors/".$this->Article->Author->ID.".html";
82.// $str .= $this->EchoFile($file);
83. }
?>
NewsWebPage->Main('')
ReflectionMethod->invoke(NewsWebPage, '')
File: /sites/sapteseri.ro/Arachnid/Core/Web/PlaceholderHandler.php, Line: 76
<?php
71. $reflectionObject = new ReflectionObject($this->ObjectInstance);
72. $reflectionMethod = $reflectionObject->getMethod($this->MethodName);
73. if(is_array($this->Parameter))
74. return $reflectionMethod->invokeArgs($this->ObjectInstance, $this->Parameter);
75. else
76. return $reflectionMethod->invoke($this->ObjectInstance, $this->Parameter);
77. }
78.}
79.
80.?>?>
PlaceholderHandler->Invoke()
File: /sites/sapteseri.ro/Arachnid/Core/Web/Template.php, Line: 68
<?php
63. $search = array();
64. reset($this->Handlers);
65. while(list($placeholder, $handler) = each($this->Handlers)) {
66. if(strstr($this->Text, $placeholder) === false || ! ($handler instanceof PlaceholderHandler) ) continue;
67. $search[] = $placeholder;
68. $replace[] = $handler->Invoke();
69. }
70.
71.// echo '<pre>'.print_r($search, true).'</pre>';
72.// echo '<pre>'.htmlspecialchars(print_r($replace, true)).'</pre>';
73.
?>
Template->Parse()
File: /sites/sapteseri.ro/Arachnid/Core/Web/WebDocument.php, Line: 51
<?php
46. *
47. * @return string
48. */
49. public function Display() {
50. header("Content-Type: ".$this->ContentType."; charset=".$this->Charset);
51. return $this->Template->Parse();
52. }
53.}
54.?>?>
WebDocument->Display()
File: /sites/sapteseri.ro/index.php, Line: 94
<?php
89. if(isset($_SESSION["send_not_found"])){
90. header("HTTP/1.1 404 Not Found", true, 404);
91. unset($_SESSION["send_not_found"]);
92. }
93.
94. echo mb_convert_encoding($pageObj->Display(), 'UTF-8', 'UTF-8');
95.
96.} catch (Exception $e) {
97. die(Application::TraceException($e));
98.# die ("An error has occurred. We appologize for the inconvenience. Please try again later.");
99.}
?>